bugGNU gettext - Bugs: bug #38162, libintl_setlocale() caches...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #38162: libintl_setlocale() caches settings under Mac OS X

Submitted by:  Guido Flohr <gflohr>
Submitted on:  Thu Jan 24 14:35:11 2013  
 
Category: End-user / runtimeSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Daiki Ueno <ueno>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Tue Jun 25 12:23:17 2013, comment #6:

Worked here as well.

Guido Flohr <gflohr>
Project Member
Tue Jun 25 07:42:31 2013, 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

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Thu Mar 7 08:32:48 2013, comment #4:

Sorry, I don't have a Mac at hand and won't be able to test the fix.

Guido Flohr <gflohr>
Project Member
Wed Mar 6 05:13:55 2013, comment #3:

https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00039.html

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Tue Mar 5 23:37:56 2013, comment #2:

Sorry for the delay. I could reproduce this with both 0.18.2.1 and 0.18.1.1.

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Thu Jan 24 14:39:36 2013, comment #1:

Just for the records: You may have to change the directory in the call to bindtextdomain().

Guido Flohr <gflohr>
Project Member
Thu Jan 24 14:35:11 2013, 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

Guido Flohr <gflohr>
Project Member

 

Attached Files
file #27325:  setlocale-cache-bug.c added by gflohr (786B - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Updated the item)
  • -unavailable- added by ueno (Posted a comment)
  • -unavailable- added by gflohr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 27 01:33:56 2016haibleCategoryNone=>End-user / runtime
    Tue Jun 25 07:42:31 2013uenoStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed Mar 6 05:13:55 2013uenoStatusConfirmed=>Ready For Test
    Tue Mar 5 23:37:56 2013uenoStatusNone=>Confirmed
      Assigned toNone=>ueno
    Thu Jan 24 14:35:11 2013gflohrAttached File-=>Added setlocale-cache-bug.c, #27325

    Back to the top


    Powered by Savane 3.1-cleanup