From: Carsten K. <car...@us...> - 2002-01-01 06:20:49
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv1212 Modified Files: config.php Log Message: setlocale now uses the new CHARSET constant from index.php. It shouldn't break anything as it defaults to "iso-8859-1", but couldn't verify this as my setlocale() and bindtextdomain() are broken (Darwin/MacOSX10.1.2). Index: config.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -r1.49 -r1.50 *** config.php 2001/12/28 09:45:50 1.49 --- config.php 2002/01/01 06:20:46 1.50 *************** *** 100,104 **** // have a list of locales to try. if (setlocale(LC_CTYPE, 0) == 'C') ! setlocale(LC_CTYPE, 'en_US.iso-8859-1'); /** string pcre_fix_posix_classes (string $regexp) --- 100,104 ---- // have a list of locales to try. if (setlocale(LC_CTYPE, 0) == 'C') ! setlocale(LC_CTYPE, 'en_US.' . CHARSET ); /** string pcre_fix_posix_classes (string $regexp) |