(
Jump to the original submission)
Tue 25 Jun 2013 12:23:17 PM UTC, comment #6:
Worked here as well.
|
Tue 25 Jun 2013 07:42:31 AM UTC, comment #5:
Anyway, pushed a bit modified version. I did some testing on Mac OS X and it seems to work so far.
http://git.savannah.gnu.org/cgit/gettext.git/commit/?h=maint&id=a65a37654252fd3f958aa414e42f625a55868b90
|
Thu 07 Mar 2013 08:32:48 AM UTC, comment #4:
Sorry, I don't have a Mac at hand and won't be able to test the fix.
|
Wed 06 Mar 2013 05:13:55 AM UTC, comment #3:
https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00039.html
|
Tue 05 Mar 2013 11:37:56 PM UTC, comment #2:
Sorry for the delay. I could reproduce this with both 0.18.2.1 and 0.18.1.1.
|
Thu 24 Jan 2013 02:39:36 PM UTC, comment #1:
Just for the records: You may have to change the directory in the call to bindtextdomain().
|
Thu 24 Jan 2013 02:35:11 PM UTC, original submission:
When I compile the attached C file under Linux and link against glibc 2.15 it behaves as expected. It first prints the message in German, then in English:
linux $ ./setlocale-cache-bug
de_DE.UTF-8
German: Unbekannter Systemfehler
C
POSIX/C: Unknown system error
The same under Mac OS X with GNU gettext 0.18.2 (from mac ports) produces German output both times:
mac $ ./setlocale-cache-bug
de_DE.UTF-8
German: Unbekannter Systemfehler
de_DE.UTF-8
POSIX/C: Unbekannter Systemfehler
setlocale() is really libintl_setlocale() on that Mac. When I place an "#undef setlocale" into main() and compile again, I get this:
mac $ ./setlocale-cache-bug
de_DE.UTF-8
German: Unbekannter Systemfehler
C/UTF-8/C/C/C/C
POSIX/C: Unbekannter Systemfehler
|
Depends on the following items: None found
Items that depend on this one: None found
Follow 7 latest changes.