ID: 22040 Updated by: [EMAIL PROTECTED] 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:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip I cannot reproduce this with the latest snapshot. All those strings have been displayed correctly on my screen. Previous Comments: ------------------------------------------------------------------------ [2003-03-04 04:12:02] dan at scannet dot dk Hmm... It looks like 1.3.27 according to one of the docs. this problem also occurs when running PHP.exe from commandline.. ------------------------------------------------------------------------ [2003-03-04 03:51:49] [EMAIL PROTECTED] Which version of apache are you using? ------------------------------------------------------------------------ [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
