Bug #66265 [Com]: gettext is not working anymore

From: Date: Fri, 06 Mar 2015 11:51:19 +0000
Subject: Bug #66265 [Com]: gettext is not working anymore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191211@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66265&edit=1

 ID:                 66265
 Comment by:         alvaro at demogracia dot com
 Reported by:        roeycohen at gmail dot com
 Summary:            gettext is not working anymore
 Status:             Closed
 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:

Is there a new ticket for TS builds?


Previous Comments:
------------------------------------------------------------------------
[2014-11-26 16:21:28] 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-21 13:17:07] ab@php.net

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.

------------------------------------------------------------------------
[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.

------------------------------------------------------------------------


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


Thread (33 messages)

« previous php.bugs (#191211) next »