Feature #11615
should handle locale charmap aliases
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
Description
Linux seems to name locales FOO.utf8 were we use FOO.UTF-8. We should deliver compat links or the like, for code that deals in names rather than just taking the one from the environment, and for anything passing locale names across the network.
Garrett was there a reason you didn't do this? I have this nagging memory of there being one
Updated by Yuri Pankov over 1 year ago
- Subject changed from Should deliver FOO.utf8 locale compat links to should handle locale charmap aliases
- Category changed from locale - data and messages to lib - userland libraries
- Status changed from New to In Progress
- Assignee set to Yuri Pankov
- % Done changed from 0 to 50
- Difficulty changed from Medium to Bite-size
Let's try implementing this in libc instead of symlinking.
Updated by Yuri Pankov over 1 year ago
To test this, I used aliases in locale specification and checked that output of `locale` and e.g. `date` uses the respective charmap name:
$ locale LANG=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_ALL= $ LANG=en_US.utf8 locale LANG=en_US.utf8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_ALL= $ LANG=ru_RU.utf8 date 19 сентября 2019 г., 14:22:17 MSK $ LANG=ru_RU.koi8r date | iconv -f KOI8-R -t UTF-8 19 сентября 2019 г., 14:21:34 MSK
Updated by Electric Monk over 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
git commit 13027a8e96cb0ef5c5e3dbe2594f7a17b73a95b5
commit 13027a8e96cb0ef5c5e3dbe2594f7a17b73a95b5 Author: Yuri Pankov <yuri.pankov@nexenta.com> Date: 2019-09-20T01:06:11.000Z 11615 should handle locale charmap aliases Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>