On 6/24/26 11:02 PM, Collin Funk wrote:
Grisha Levit <[email protected]> writes:I think this behavior might just be a gnulib bug? AFAICT, what happens in this case (no relevant variables in the environment, System Preferences Language/Region set such that they do not match a valid locale): libintl_setlocale(LC_ALL,"") will set the LC_NUMERIC category (and others) by: * checking the value of the "AppleLocale" preference value (en_DE) * calling the system setlocale with this value (which fails) * finding an appropriate locale name based on the territory (de_DE) * calling the system setlocale with this value libintil_setlocale(LC_NUMERIC, "") uses a different code path, which does not do the last two steps, and so will just fail.Does bash use Gnulib's setlocale on MacOS?
It uses lib/intl from gettext-0.21.1. I changed to that version in
August, 2023. As I recall, there was something about gettext-0.22 that
made it unworkable with bash, but I can't remember exactly.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
