From: "Ludovic Courtès" <ludo@gnu.org>
To: Meiyo Peng <meiyo@riseup.net>
Cc: 35671@debbugs.gnu.org
Subject: bug#35671: 'glibc-utf8-locales' should include C.UTF-8 locale
Date: Tue, 14 May 2019 22:57:45 +0200 [thread overview]
Message-ID: <87y338wy7q.fsf@gnu.org> (raw)
In-Reply-To: <87a7fp23bo.fsf@riseup.net> (Meiyo Peng's message of "Tue, 14 May 2019 10:10:51 +0800")
Hi,
Meiyo Peng <meiyo@riseup.net> skribis:
> I was surprised last week (maybe the week before that) when I found out
> that glibc-utf8-locales only provides locales for de_DE, el_GR, en_US,
> fr_FR, tr_TR. And in our manual, we tell people to install
> glibc-utf8-locales after installing Guix on a foreign distro in order to
> solve locale problems. The name "glibc-utf8-locales" indicates it
> provides ALL UTF-8 locales while in fact it does not. This caused me a
> trouble because I have to set the locale of Emacs to zh_CN.UTF-8 in
> order to enable the ibus input method in Emacs. (This is a known
> problem of Emacs. Locale has to be set to one of CJK locale in order to
> enable external input methods.) Since the zh_CN.UTF-8 locale is not in
> $GUIX_LOCPATH, ibus does not work in Emacs. I ended up installing the
> "glibc-locales" package and solved the problem.
To be fair, the manual has always recommended ‘glibc-locales’, not
‘glibc-utf8-locales’, and the latter is explicitly described as “limited
to a few UTF-8 locales”:
https://www.gnu.org/software/guix/manual/en/html_node/Application-Setup.html
The hint in (guix ui) is less clear, though.
> I think it would be better to simply tell people to install the
> "glibc-locales" package. There may be a case where different
> applications are set to different locales. For example, my system is
> set to the en_US.UTF-8 locale but my Emacs is set to the zh_CN.UTF-8
> locale. So $LC_* only refers to en_US.UTF-8 if guix tries to detect the
> locale. If ‘guix package --install-locales’ only install what $LANG or
> $LC_* refers to, zh_CN.UTF-8 won't be installed for me.
That command could take a parameter, of course.
See also:
<https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00285.html>.
Thanks for your feedback!
Ludo’.
next prev parent reply other threads:[~2019-05-14 20:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-10 16:31 bug#35671: 'glibc-utf8-locales' should include C.UTF-8 locale Ludovic Courtès
2019-05-11 3:48 ` Meiyo Peng
2019-05-13 20:44 ` Ludovic Courtès
2019-05-13 21:50 ` Ludovic Courtès
2021-12-14 17:55 ` bug#35671: guix-daemon cannot find UTF-8 locale out-of-the-box on foreign distros Maxim Cournoyer
2019-05-14 2:10 ` bug#35671: 'glibc-utf8-locales' should include C.UTF-8 locale Meiyo Peng
2019-05-14 20:57 ` Ludovic Courtès [this message]
2019-05-15 1:35 ` Meiyo Peng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y338wy7q.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=35671@debbugs.gnu.org \
--cc=meiyo@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.