|
From: | Gunnar Hjalmarsson |
Subject: | Re: How to make locale settings more robust |
Date: | Sun, 11 Jun 2023 01:46:54 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 2023-06-11 01:23, Anadon wrote:
... I need to find out why `uk` and `uk_UA` are not working but `uk_UA.utf8`.
Because you need to use a valid locale name to reference a locale. And that locale name in this case is uk_UA.UTF-8 (or the alias uk_UA.utf8).
Your question sounds a little like "why do I have to use 'ls' to list the contents of a directory, while 'listdir' does not work?". :)
Actually "uk_UA" does work in a sense, i.e. if you generate the uk_UA locale. But that locale enables KOI8-U encoding (for historical reasons) and is most likely not what you want.
-- Gunnar Hjalmarsson https://launchpad.net/~gunnarhj
[Prev in Thread] | Current Thread | [Next in Thread] |