Use C character conversion rules if Turkish translation is used. Breaks
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 7 Sep 2004 15:59:32 +0000 (15:59 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 7 Sep 2004 15:59:32 +0000 (15:59 +0000)
some case insensitive searches in Turkish translations, but stops breaking
any strtoupper/strtolower functions, that assume English character case
conversion rules.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8037 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index cf30023b4925294944758ddb2fea0a0c5f49018a..d0fa4c31b748e831cd779b3440e1f18242975a34 100644 (file)
@@ -250,8 +250,10 @@ function set_up_language($sm_language, $do_search = false, $default = false) {
             putenv( "LC_ALL=$longlocale" );
             putenv( "LANG=$longlocale" );
             putenv( "LANGUAGE=$longlocale" );
+            if ($sm_notAlias=='tr_TR') putenv( "LC_CTYPE=C" );
         }
         setlocale(LC_ALL, $longlocale);
+        if ($sm_notAlias=='tr_TR') setlocale(LC_CTYPE,'C');
 
         // Set text direction/alignment variables
         if (isset($languages[$sm_notAlias]['DIR']) &&