Subject: Re: bug#57531: 28.1; Character encoding missing for "eo"

From: Jonathan Reeve <[email-masked]>
Date: Sat, 03 Sep 2022 01:28:56 +0000

“Eli Zaretskii” <[email-masked]> writes:

> Can you tell what is the default encoding in that case?

It looks like it’s `iso-latin-3', which is not working, since all my unicode characters get mangled. See [the screenshot in this question of mine on StackExchange.]

> If you want the UTF-8 encoding to be the default, why is your locale
> set to “eo” and not to “eo.UTF-8”?

There is no eo.UTF-8 locale available to the system, as you can see [from the glibc documentation]. The “eo” locale is actually UTF-8, however. It’s interpreted as such just fine, across my whole system, except for in the emacs terminal, where it gets interpreted as `iso-latin-3'.

> Are you saying that the Esperanto locale _must_ use UTF-8?  If so,
> why?  AFAIK, ISO-8859-3 covers the Esperanto characters, so UTF-8 is
> not the only possible codeset for Esperanto locales.

If you look at that glibc document, you’ll see that the “eo” locale is actually UTF-8. Unlike `en_US', which has variants like  `en_US.UTF-8' which is UTF-8 and `en_US' which is ISO-8859-1, there is only `eo/UTF-8', i.e., `eo' which is UTF-8.

[the screenshot in this question of mine on StackExchange.] <https://emacs.stackexchange.com/questions/73393/how-can-i-fix-bad-character-encoding-in-the-terminal-and-other-functions-that-r>

[from the glibc documentation] <https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED>