#22040 [NEW]: PHP hangs when reading certan japaneese or chineese chars

From: Date: Tue, 04 Feb 2003 09:56:23 +0000
Subject: #22040 [NEW]: PHP hangs when reading certan japaneese or chineese chars
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32046@lists.php.net to get a copy of this message
From: dan@scannet.dk Operating system: Win2k PHP version: 4.3.0 PHP Bug Type: Gettext related Bug description: PHP hangs when reading certan japaneese or chineese chars $lang = "ja_JP"; putenv ("LANG=".eregi_replace('.*_','',$lang)); putenv("LC_ALL=$lang"); setlocale(LC_ALL, ""); bindtextdomain("horde", "C:\Program Files\Apache Group\Apache\web\horde\locale"); textdomain("horde"); echo gettext('Addressbook') ."\n"; //Returns some japaneese chars.. echo gettext('Delete') ."\n"; //Returns some japaneese chars.. echo gettext('Birthday') ."\n"; //PHP hangs.. echo gettext('Mail') ."\n"; //PHP hangs.. echo gettext('Daily') ."\n"; //PHP hangs.. /* In HEX: Birthday: 92 61 30 b6 93 fa Mail: 93 64 8e 71 83 81 81 5b 83 8b Daily: 96 88 93 fa The only char in common for all 3 is $93 thats #147 in dec.. */ $test = chr(147); echo $test; echo _($test); // I copy $93 to the $test variable.. Then print $test then print gettext($test).. // All theese work perfectly, so it seems its not a general problem in php.. -- Edit bug report at http://bugs.php.net/?id=22040&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22040&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22040&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22040&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22040&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22040&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22040&r=support Expected behavior: http://bugs.php.net/fix.php?id=22040&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22040&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22040&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22040&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22040&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22040&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22040&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22040&r=gnused

« previous php.bugs (#32046) next »