GNU gettext - Bugs: bug #44645, libintl_setlocale() still caches...
You are not allowed to post comments on this tracker with your current authentication level.
bug #44645: libintl_setlocale() still caches settings under Mac OS X
Submitter: | Guido Flohr <gflohr> | ||
Submitted: | Fri 27 Mar 2015 10:14:44 AM UTC | ||
Category: | End-user / runtime | Severity: | 3 - Normal |
Item Group: | None | Status: | Not a Bug |
Privacy: | Public | Assigned to: | haible |
Open/Closed: | Closed |
Jump to the original submission
Sun 16 Sep 2018 07:31:22 PM UTC, comment #10: |
Guido Flohr <gflohr> |
Sun 16 Sep 2018 05:36:38 PM UTC, comment #9: We will not implement that gettext() notices changes of the locale, without an override of setlocale via libintl_setlocale.
|
Bruno Haible <haible> |
Tue 31 Mar 2015 07:24:48 AM UTC, comment #8: Yes, that's what I meant. Wait for the call to libintl_setlocale() in order to be sure that it is reachable from the application code.
|
Guido Flohr <gflohr> |
Tue 31 Mar 2015 12:56:56 AM UTC, comment #7:
|
Daiki Ueno <ueno> |
Mon 30 Mar 2015 07:56:09 AM UTC, comment #6: You could enable the caching from inside libintl_setlocale(). That still wouldn't be perfect but catches at least the simple cases.
|
Guido Flohr <gflohr> |
Mon 30 Mar 2015 07:42:17 AM UTC, comment #5: I see your use-case and the current fix[1] is not suitable for it. However, I can't think of any other practical solution. Any suggestions? One idea is to invalidate the cache in dcigettext.c, though it might suffer performance and maintainability as I wrote in the ML post.
|
Daiki Ueno <ueno> |
Mon 30 Mar 2015 07:22:14 AM UTC, comment #4: Yes, see my original bug report where I mentioned that I undefined setlocale().
|
Guido Flohr <gflohr> |
Mon 30 Mar 2015 06:48:06 AM UTC, comment #3: Well, the behavior is not surprising because you added #undef setlocale to the new test case. If I comment out the line to use libintl_setlocale(), it produces the expected result. |
Daiki Ueno <ueno> |
Mon 30 Mar 2015 06:29:39 AM UTC, comment #2: I can reproduce it both with a vanilla gettext-0.19.4 and the one installed with Mac Ports:
|
Guido Flohr <gflohr> |
Mon 30 Mar 2015 03:57:29 AM UTC, comment #1: I can't reproduce it (on OS X 10.8, though the version number is unlikely to be related). Is it really the same problem?
|
Daiki Ueno <ueno> |
Fri 27 Mar 2015 10:14:44 AM UTC, original submission:
Tried on Mac OS X Yosemite with gettext-runtime 0.19.4 from Mac Ports.
|
Guido Flohr <gflohr> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-09-16 | haible | Status | None | Not a Bug | |
Assigned to | None | haible | |||
Open/Closed | Open | Closed | |||
2016-11-27 | haible | Category | None | End-user / runtime | |
2015-03-30 | gflohr | Attached File | - | Added bug-44645.tar.gz, #33488 |
Powered by Savane 3.13-4448.
Corresponding source code
Okay, agreed.