Fixed bug #7901: Workaround for PHP bug with Locale tr_TR (Thanks to Reinhard Führicht)
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 8 Aug 2010 10:23:21 +0000 (10:23 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 8 Aug 2010 10:23:21 +0000 (10:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8525 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index 54196fe..068c675 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-08  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #7901: Workaround for PHP bug with Locale tr_TR (Thanks to Reinhard Führicht)
+
 2010-08-08  Susanne Moog  <typo3@susanne-moog.de>
 
        * Fixed bug #14952: Opendocs Module relies on taskcenter_recent causing fatal error with new taskcenter (thanks to Georg Ringer and Philipp Gampe)
index ebe4f18..229d18a 100644 (file)
                        # so we set all except LC_NUMERIC
                        $locale = setlocale(LC_COLLATE, $this->config['config']['locale_all']);
                        if ($locale) {
-                               setlocale(LC_CTYPE, $this->config['config']['locale_all']);
+
+                                       // PHP fatals with uppercase I characters in method names with turkish locale LC_CTYPE
+                                       // @see http://bugs.php.net/bug.php?id=35050
+                               if (substr($this->config['config']['locale_all'], 0, 2) != 'tr') {
+                                       setlocale(LC_CTYPE, $this->config['config']['locale_all']);
+                               }
+
                                setlocale(LC_MONETARY, $this->config['config']['locale_all']);
                                setlocale(LC_TIME, $this->config['config']['locale_all']);