From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meiyo Peng Subject: bug#35671: 'glibc-utf8-locales' should include C.UTF-8 locale Date: Wed, 15 May 2019 09:35:05 +0800 Message-ID: <87ftpg5wl2.fsf@riseup.net> References: <877eayz2x0.fsf@inria.fr> <87o946ozj3.fsf@gnu.org> <87a7fp23bo.fsf@riseup.net> <87y338wy7q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQiq0-0000j4-7E for bug-guix@gnu.org; Tue, 14 May 2019 21:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQipw-0006NI-V9 for bug-guix@gnu.org; Tue, 14 May 2019 21:36:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQipu-0006Is-JZ for bug-guix@gnu.org; Tue, 14 May 2019 21:36:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQipu-0006Cq-EU for bug-guix@gnu.org; Tue, 14 May 2019 21:36:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87y338wy7q.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 35671@debbugs.gnu.org Hi Ludovic, Ludovic Court=C3=A8s writes: > Meiyo Peng 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 =E2=80=98glibc-locales=E2= =80=99, not > =E2=80=98glibc-utf8-locales=E2=80=99, and the latter is explicitly descri= bed as =E2=80=9Climited > to a few UTF-8 locales=E2=80=9D: > > https://www.gnu.org/software/guix/manual/en/html_node/Application-Setup= .html You are right. My mistake. But when I saw the text: #+begin_quote Note that the glibc-locales package contains data for all the locales supported by the GNU libc and weighs in at around 110 MiB. Alternatively, the glibc-utf8-locales is smaller but limited to a few UTF-8 locales. #+end_quote I thought the glibc-utf8-locales should satisfy my requirements since all my locales are in UTF-8, and it's preferred if disk space is limited. The name of glibc-utf8-locales is misleading. In fact, the "few" UTF-8 locales it provides are too few. We'd better modify the text a little bit if we are going to reach a broader user base. > 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 =E2=80=98guix package --install-locales=E2=80=99 only instal= l what $LANG or >> $LC_* refers to, zh_CN.UTF-8 won't be installed for me. > > That command could take a parameter, of course. That makes sense. -- Meiyo Peng https://www.pengmeiyu.com/