From: Tomas K. <to...@us...> - 2004-10-04 16:42:08
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3737 Modified Files: Tag: SM-1_4-STABLE i18n.php Log Message: porting setlocale changes from devel Index: i18n.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/i18n.php,v retrieving revision 1.129.2.25 retrieving revision 1.129.2.26 diff -u -w -r1.129.2.25 -r1.129.2.26 --- i18n.php 30 Aug 2004 17:46:54 -0000 1.129.2.25 +++ i18n.php 4 Oct 2004 16:40:54 -0000 1.129.2.26 @@ -129,8 +129,18 @@ putenv( "LC_ALL=$longlocale" ); putenv( "LANG=$longlocale" ); putenv( "LANGUAGE=$longlocale" ); + putenv( "LC_NUMERIC=C" ); + if ($sm_notAlias=='tr_TR') putenv( "LC_CTYPE=C" ); } setlocale(LC_ALL, $longlocale); + // Workaround for plugins that use numbers with floating point + // It might be removed if plugins use correct decimal delimiters + // according to locale settings. + setlocale(LC_NUMERIC, 'C'); + // Workaround for specific Turkish strtolower/strtoupper rules. + // Many functions expect English conversion rules. + if ($sm_notAlias=='tr_TR') setlocale(LC_CTYPE,'C'); + $squirrelmail_language = $sm_notAlias; if ($squirrelmail_language == 'ja_JP') { header ('Content-Type: text/html; charset=EUC-JP'); |