Edit report at https://bugs.php.net/bug.php?id=66265&edit=1
ID: 66265
Updated by: ab@php.net
Reported by: roeycohen at gmail dot com
Summary: gettext is not working anymore
-Status: Closed
+Status: Re-Opened
Type: Bug
Package: Gettext related
Operating System: windows
PHP Version: 5.5.7
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
I want to gratefully thank everyone who reported here and kindly ask to test this or later NTS
snapshot http://windows.php.net/downloads/snaps/php-5.5/rf2e33dc/
.
Yes, TS builds are still not fixed and there is no certainty they can be fixed, that's why i
reopen this. Even I'd rather mark this ticket as solved and move the remaining issue to another
one. As locale is not thread safe (for instance see bug #65769). Fortunately gettext isn't
really based on the locale functionality but on the exported vars, like LANGUAGE, LANG, LC_ALL or
LC_CTYPE. It might be also that the libintl will have to be patched once more to support TS builds.
It also seems that something has changed from VC9 to VC11 so then it affects the behaviour of the
libintl.
One note though about the snippets brought here so far, the following won't work on windows
setlocale(LC_ALL, 'de_DE');
de_DE isn't a valid locale on Windows, so the former should look like
setlocale(LC_ALL, 'de_DE', 'de-de');
and actually it could contain any number of locale names. While setlocale on windows wont directly
affect the gettext behaviour, merely it's an environment varibale as mentioned before.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2014-11-21 09:25:36] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=56fac96bec882ac59a7fc298c98407bf4a17629d
Log: partially fixed bug #66265
------------------------------------------------------------------------
[2014-11-18 19:08:05] goozak at gmail dot com
Bug still present in PHP 5.5.19.
(Wondering if assigned user ab is still working on this, he hasn't commented since 2013.)
------------------------------------------------------------------------
[2014-10-27 09:31:46] dalahimself at hotmail dot com
Had similar problem. Was running XAMPP 1.8.3 (Php 5.5.15) on Windows 2008 R2 sever and could not get
gettext to work.
Installed XAMPP 1.8.1 (Php 5.4.7) instead, and now things work just fine.
------------------------------------------------------------------------
[2014-09-30 18:34:14] jin at 2acom dot com
got the same problem on windows 8, wamp 2.5 (64bit) and php 5.5.12
------------------------------------------------------------------------
[2014-07-31 07:50:02] az at tass dot de
Related To: Bug #66265
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66265
--
Edit this bug report at https://bugs.php.net/bug.php?id=66265&edit=1