bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [bug #54479] libintl_setlocale(LC_ALL, "") fails under som


From: Dapeng Gao
Subject: [bug-gettext] [bug #54479] libintl_setlocale(LC_ALL, "") fails under some locales in macOS
Date: Thu, 9 Aug 2018 10:17:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15

Follow-up Comment #1, bug #54479 (project gettext):

After reading the code I think the problem arises on line 855 of
`setlocale.c', where a call like `setlocale_unixlike (LC_ALL, "UTF-8")' will
fail on macOS. This is because

a) The call on line 645, which is `setlocale(LC_ALL, "UTF-8")', will fail (I
have tested this).
b) `setlocale_unixlike' makes an incorrect assumption about the format of the
`locale' string, so further attempts to recover will also fail.

Shall we perhaps change `setlocale_unixlike' to better handle this?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]