From 475df436a95aed8b49c6a9649d57c7e139f31bde Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 7 Sep 2004 15:59:32 +0000 Subject: [PATCH] Use C character conversion rules if Turkish translation is used. Breaks 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/i18n.php b/functions/i18n.php index cf30023b..d0fa4c31 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -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']) && -- 2.25.1