Follow-up Comment #2, bug #44645 (project gettext):

I can reproduce it both with a vanilla gettext-0.19.4 and the one installed
with Mac Ports:

guido@macbook:/tmp/gettext-0.19.4 $ gettext-runtime/libtool --mode=link gcc -o
setlocale-cache-bug -I gettext-runtime/intl setlocale-cache-bug.c
gettext-runtime/intl/libintl.la
libtool: link: gcc -o .libs/setlocale-cache-bug -I gettext-runtime/intl
setlocale-cache-bug.c  gettext-runtime/intl/.libs/libintl.dylib -liconv -lc
guido@macbook:/tmp/gettext-0.19.4 $ ./setlocale-cache-bug 
ja_JP.UTF-8
German: 未知のシステムエラー
C/en_US.UTF-8/C/C/C/C
POSIX/C: 未知のシステムエラー
guido@macbook:/tmp/gettext-0.19.4 $ cd /tmp/bug-44645
guido@macbook:/tmp/bug-44645 $ make
cc -I /opt/local/include   -c -o setlocale-cache-bug.o setlocale-cache-bug.c
cc -L /opt/local/lib -lintl -o setlocale-cache-bug setlocale-cache-bug.o
guido@macbook:/tmp/bug-44645 $ ./setlocale-cache-bug 
ja_JP.UTF-8
German: 未知のシステムエラー
C/en_US.UTF-8/C/C/C/C
POSIX/C: 未知のシステムエラー
guido@macbook:/tmp/bug-44645 $ locale 
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
guido@macbook:/tmp/bug-44645 $ port installed | grep gettext
Warning: port definitions are more than two weeks old, consider updating them
by running 'port selfupdate'.
  gettext @0.19.3_1
  gettext @0.19.4_0 (active)

I have attached the exact setlocale-cache-bug.c that I used on my mac here.

The only sigifnicant difference I see to your setup is the return value of
setlocale().  And I am using Mac OS X 10.10.2.


(file #33488)
    _______________________________________________________

Additional Item Attachment:

File name: bug-44645.tar.gz               Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44645>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to