Package: libc-bin
Version: 2.36-9+deb12u1
Severity: normal

Dear Maintainer,

When I run `locale -a` I get output such as:

C
C.utf8
POSIX
en_US.utf8

However, the correct names of the UTF-8 locales are supposed to be hyphenated 
according to the standard, and uppercase according to convention:
C.UTF-8
en_US.UTF-8

Musl (alpine linux) shows the locales correctly.

The canonical UTF-8 is preferable to the utf8 synonym (if it can be called a 
synonym, utf8 is not defined by IANA). It is especially important that the 
C.UTF-8 locale contains the hyphen.

If you wish to see what the canonical character encoding is for a locale, you 
can run for any locale `LC_ALL=en_US.utf8 locale charmap` and it will output 
UTF-8.

A lot of additional information can be found here:
https://unix.stackexchange.com/questions/605770/is-the-utf8-in-en-us-utf8-a-canonical-character-set/605777#605777

that post explains what glibc is doing and why it is incorrect in doing that.


-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-10-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libc-bin depends on:
ii  libc6  2.36-9+deb12u1

Versions of packages libc-bin recommends:
ii  manpages  6.03-2

libc-bin suggests no packages.

-- no debconf information

Reply via email to