[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macOS 12 - cannot override LC_ALL=C setting from environment
From: |
Bruno Haible |
Subject: |
Re: macOS 12 - cannot override LC_ALL=C setting from environment |
Date: |
Sun, 01 Dec 2024 11:57:00 +0100 |
Patrice Dumas wrote:
> > you need to do
> > setenv ("LC_ALL", "en_US.UTF-8", 1);
> > setlocale (LC_ALL, "");
>
> I did some testing on macos, the following works too:
> setenv ("LC_ALL", "en_US.UTF-8", 1);
> setlocale (LC_ALL, "en_US.UTF-8");
Yes, this works too. But this way of writing it
- has some duplication: "en_US.UTF-8" occurs twice,
- will obviously raise an alert with a mindful reader:
"isn't part of these two statements redundant?"
Bruno