[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [bug #54479] libintl_setlocale(LC_ALL, "") fails under som
From: |
Bruno Haible |
Subject: |
[bug-gettext] [bug #54479] libintl_setlocale(LC_ALL, "") fails under some locales in macOS |
Date: |
Sun, 16 Sep 2018 05:01:43 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 |
Follow-up Comment #4, bug #54479 (project gettext):
I did not use the patch from
https://lists.gnu.org/archive/html/bug-gettext/2018-08/msg00017.html because
1) It introduces code that makes libintl_setlocale succeed although some of
its inner mechanics failed. In other words, it sweeps _all_ kinds of failures
under the rug. It is better to signal failure outright and without delay, and
to treat only _specific_ failures like success.
2) The failed call was setlocale (LC_ALL, "UTF-8"), apparently because macOS
supports "UTF-8" as a locale name only for LC_CTYPE but not for LC_ALL. I find
it better to make libintl_setlocale succeed (the best we can), rather than
fail.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54479>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/