emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disambiguate modeline character for UTF-8?


From: Po Lu
Subject: Re: Disambiguate modeline character for UTF-8?
Date: Thu, 06 Jul 2023 20:27:45 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Ulrich Mueller <ulm@gentoo.org> writes:

> UTF-8 is one of the most common encodings, and it is strange that it
> shares its modeline indicator with anything else. And the "U" is really
> ambiguous, because context won't help (or how would you decide if a
> buffer's file encoding is e.g. koi8-u or utf-8?).
>
> As you say, the others in the above list are rarely used nowadays. So,
> maybe users should see the "u" or the "K" to indicate that the file has
> an unusual encoding?

The coding system indication in the mode line is most useful for
determining which characters can be represented in the file's coding
system.  Since the same characters can be encoded in all of UTF-16,
UTF-32 and UTF-8, it is only natural for them to share the same mode
line indicator.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]