unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: Locales not working
Date: Wed, 11 Feb 2015 21:39:36 +0100	[thread overview]
Message-ID: <87a90kw5br.fsf@gnu.org> (raw)
In-Reply-To: <20150210183024.GA30000@debian> (Andreas Enge's message of "Tue, 10 Feb 2015 19:30:24 +0100")

Andreas Enge <andreas@enge.fr> skribis:

> The code of glibc states
>             ;; Installing a locale archive with all the locales is to
>             ;; expensive (~100 MiB), so we rely on users to install the
>             ;; locales they really want.
> But how do I do that? I wondered if there was an additional "locale" output
> of glibc, but there is not.
>
> $ guix package -A locale
> does not return anything useful.
>
> There is a section 6.2.6 in the manual, but it only speaks about GSD,
> not about Guix inside other systems.

Right, Mark reported it as well.

The basic idea is that it’s up to you to define $LOCPATH and have it
point to a place that contains locale data (info "(libc) Locale Names").

But I think we could provide a ‘glibc-locales’ package (110 MiB) for
those in search of a quick fix on foreign distros.

(Time passes...)

Commit aee6180c adds ‘glibc-locales’.  You can install it and do:

  export LOCPATH=$HOME/.guix-profile/share/locale

though that’s not the most efficient approach space-wise.

I would instead recommend using your host libc’s locale data, which
should be compatible; something like that (untested):

  export LOCPATH=/usr/share/locale

Last, commit d6718df of ‘core-updates’ adds a search path specification
for ‘LOCPATH’.  (Not really useful for profiles since one would need to
explicitly install glibc in their profile to get the message about
‘LOCPATH’.)

Ludo’.

  reply	other threads:[~2015-02-11 20:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10 18:06 Locales not working Andreas Enge
2015-02-10 18:30 ` Andreas Enge
2015-02-11 20:39   ` Ludovic Courtès [this message]
2015-02-12 17:38     ` Andreas Enge
2015-02-15  0:52     ` Mark H Weaver
2015-02-23 21:28       ` LC_TIME category in Coreutils Ludovic Courtès
2015-02-23 22:01         ` bug#19933: " Andreas Schwab
2015-02-24 23:07           ` Ludovic Courtès
2015-02-23 22:15         ` bug#19933: " Paul Eggert
2015-02-24 23:01           ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a90kw5br.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).