Link 7 May 24 notes There's been a bug with using the Turkish locale tr_TR in PHP since 2002»

Türküz ya, konuya bu vesileyle dikkat çekmek istedim.

Ayrıca not: Skati malı İstanbul’da bir Türk’ten almış.

jacob:

At some point internally, PHP converts function and class names to their lowercase equivalent. According to this page, Turkish has two forms of the letter “i”, which are apparently not interchangeable.

This all, of course, means that any function or class with a capital “i” in it’s name will appear undefined when using a Turkish locale. Fun!

The simplest workaround seems to be just setting LC_CTYPE back to en_US when using the tr_TR locale.

  1. alhadis reblogged this from jacob and added:
    en instead, since...entire world actually doesn’t revolve around America.
  2. feelingtheblanks reblogged this from jacob and added:
    Türküz ya, konuya bu vesileyle dikkat çekmek istedim. Ayrıca not: Skati malı İstanbul’da bir Türk’ten almış.
  3. wylie said: Does this mean Tumblr is going to be adding support for Turkish soon, or just that you were looking through old PHP bugs?
  4. nickdivers said: COOL Str_TRY BRO
  5. serratonin said: I’m Turkish !! ahh !!!! :)
  6. ben said: How about no one uses PHP in Turkey or on Turkish sites.
  7. 200 said: I really like obscure PHP bugs. And really old bugs even more. The best bugs are marked as ‘bogus’ (and then get fixed two version later).
  8. jacob posted this

Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.