#22040 [Opn->Fbk]: PHP hangs when reading certan japaneese or chineese chars

From: Date: Tue, 04 Mar 2003 09:51:50 +0000
Subject: #22040 [Opn->Fbk]: PHP hangs when reading certan japaneese or chineese chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34737@lists.php.net to get a copy of this message
ID: 22040 Updated by: moriyoshi@php.net Reported By: dan at scannet dot dk -Status: Open +Status: Feedback Bug Type: Gettext related Operating System: Win2k PHP Version: 4.3.0 New Comment: Which version of apache are you using? Previous Comments: ------------------------------------------------------------------------ [2003-02-04 03:56:23] dan at scannet dot dk $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 this bug report at http://bugs.php.net/?id=22040&edit=1

« previous php.bugs (#34737) next »