On 18/11/2025 11:37, Bruno Haible wrote:
If we assume that Thai, Farsi, and Amharic are mostly spoken in these countries (and that users don't create locales like th_US.UTF-8), it would be sufficient to test for the language:$ cd glibc/localedata/locales; ls -1 th_* am_* fa_* am_ET fa_IR th_TH And testing for the language could be done by testing for the full weekday name of, say, Monday, in that language. I.e. by calling the system's strftime("%A") for a particular date. This would get rid of this link dependency on macOS. Does that sound reasonable?
Even doing this close approximation only on macos would be useful, as we've seen that as well as startup overhead with extra dynamic libs, there are behavioral side effects like the __CF_USER_TEXT_ENCODING environment variable being auto set. We avoided¹ that for env(1) in coreutils-9.9 but still it would be good to avoid altogether. thanks, Padraig. ¹ https://github.com/coreutils/coreutils/commit/8b111d027 https://github.com/coreutils/coreutils/commit/cf08d2d3b
