GNU C Library 2.35 released
source link: https://lwn.net/Articles/883702/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
GNU C Library 2.35 released
(Log in to post comments)
GNU C Library 2.35 released
Posted Feb 3, 2022 21:07 UTC (Thu) by josh (subscriber, #17465) [Link]
I'm glad C.UTF-8 will become more universal.
I currently have this, in my environment setup:
if [ -d "/usr/lib/locale/C.UTF-8" ]; then LANG=C.UTF-8 else case " $(echo $(LC_ALL=C locale -a)) " in *\ C.UTF-8\ *) LANG=C.UTF-8 ;; *\ C.utf8\ *) LANG=C.utf8 ;; *\ en_US.utf8\ *) LANG=en_US.utf8 ;; *\ en_US.UTF-8\ *) LANG=en_US.UTF-8 ;; *) LANG=C ;; esac fi LC_CTYPE="$LANG" LC_ADDRESS=C LC_COLLATE=C LC_IDENTIFICATION=C LC_MEASUREMENT=C LC_MESSAGES=C LC_MONETARY=C LC_NAME=C LC_NUMERIC=C LC_PAPER=C LC_TELEPHONE=C LC_TIME=C export LANG LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME
I'd love to simplify away the detection to figure out a vaguely sensible UTF-8 locale (and, eventually, also throw away the fallback to LANG=C).
GNU C Library 2.35 released
Posted Feb 4, 2022 0:25 UTC (Fri) by cortana (subscriber, #24596) [Link]
GNU C Library 2.35 released
Posted Feb 4, 2022 18:46 UTC (Fri) by madscientist (subscriber, #16861) [Link]
GNU C Library 2.35 released
Posted Feb 4, 2022 23:16 UTC (Fri) by joib (subscriber, #8541) [Link]
en_US.utf8
(and no en_US.UTF-8)
GNU C Library 2.35 released
Posted Feb 5, 2022 1:48 UTC (Sat) by dbnichol (subscriber, #39622) [Link]
$ LC_ALL=en_US.UTF-8 locale LC_IDENTIFICATION
English locale for the USA
Free Software Foundation, Inc.
https://www.gnu.org/software/libc/
American English
United States
1.0
2000-06-24
i18n:2012;UTF-8;;;;;;;;;;;
UTF-8
$ LC_ALL=en_US.utf8 locale LC_IDENTIFICATION
English locale for the USA
Free Software Foundation, Inc.
https://www.gnu.org/software/libc/
American English
United States
1.0
2000-06-24
i18n:2012;UTF-8;;;;;;;;;;;
UTF-8
$ LC_ALL=C.UTF-8 locale LC_IDENTIFICATION
C locale
1.6
2016-08-08
i18n:2012;UTF-8;;;;;;;;;;;
UTF-8
$ LC_ALL=C.utf8 locale LC_IDENTIFICATION
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ISO/IEC 14652 i18n FDCC-set
ISO/IEC JTC1/SC22/WG20 - internationalization
C/o Keld Simonsen, Skt. Jorgens Alle 8, DK-1615 Kobenhavn V
Keld Simonsen
[email protected]
+45 3122-6543
+45 3325-6543
1.0
1997-12-20
i18n:1999;ANSI_X3.4-1968;;;;;;;;;;;
ANSI_X3.4-1968
The last one falls back to C since the aliasing doesn't work.
GNU C Library 2.35 released
Posted Feb 6, 2022 14:33 UTC (Sun) by cortana (subscriber, #24596) [Link]
(As someone else pointed out, C.UTF-8 is still usable as a value for LC_* on the Fedora system, but 'locale -a' shows C.utf8, the locale definition lives in /usr/lib/locale/C.utf8 etc.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK