#49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
From: paulw at torchtrust dot org Date: Tue, 08 Dec 2009 13:57:07 +0000 Subject: #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors) References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-145528@lists.php.net to get a copy of this message
ID: 49349
Comment by: paulw at torchtrust dot org
Reported By: raulsalitrero at gmail dot com
Status: Assigned
Bug Type: Gettext related
Operating System: win32 only - windows xp sp3
PHP Version: 5.3.0
Assigned To: pajoye
New Comment:
I am also getting this big. Is it fixed in 5.3.1? Is there a work
around?
Thanks
Paul
Previous Comments:
------------------------------------------------------------------------
[2009-10-14 13:45:51] roger dot olivier at gmail dot com
As asked by pajoye@php.net you can found here an archive with a working
script with 5.2.5 and not with 5.3.0
Tested on Xp pro Sp3
http://www.lanforums.com/dl/gettext-setlocale_BUG_5.3.0.zip
Unzip and launch index.php.
Expected result => print "Hello world" on screen
Actual result => print "bonjour le monde" on screen
------------------------------------------------------------------------
[2009-10-02 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-09-24 18:05:55] pajoye@php.net
Yes, but nobody managed to get to it at this stage. I assign it to me
so I won't forget to check this problem.
To ease my work it would be nice if someone can zip a working script
with 5.2, with mo/po files, where it should be placed, etc. and
describe. That will shorten the time I will have to spend on the issue.
------------------------------------------------------------------------
[2009-09-24 16:51:48] bkraul at yahoo dot com
I was wondering this this issue is expected to be resolved in the near
future? Right know I have gotten around it by reverting back to php
5.2.11. Is this a problem with the extension itself?
Regards,
Belman Kraul
------------------------------------------------------------------------
[2009-09-09 12:55:57] ameoba32 at gmail dot com
On windows vista sp2 + php-5.3.0-Win32-VC9-x86
gettext function always searches for "en_US" or "en" path in locale
directory.
PHP 5.2.3 is okay.
this code produces different results
<?
putenv("LC_ALL=ru");
echo setlocale(LC_ALL,"ru");
bindtextdomain("messages", "./locale");
bind_textdomain_codeset("messages", "utf8");
textdomain("messages");
echo _("Application");exit;
?>
In php 5.3.0 it does not translate.
------------------------------------------------------------------------
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
http://bugs.php.net/49349
--
Edit this bug report at http://bugs.php.net/?id=49349&edit=1
Thread (27 messages)
- #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- #49349 [Opn->Fbk]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- #49349 [NoF->Asn]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Asn]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Asn]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Asn]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Asn->Fbk]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Fbk->Csd]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Csd]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
- Bug #49349 [Com]: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
| « previous | php.bugs (#145528) | next » |
|---|