public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: ABCD <en.ABCD@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: LC_ locale settings for UK / GB.
Date: Fri, 10 Jul 2009 23:49:59 -0400	[thread overview]
Message-ID: <h39257$a7b$1@ger.gmane.org> (raw)
In-Reply-To: 6DF38B2C-68C3-4B3A-8AC2-9F4E1990218A@stellar.eclipse.co.uk

Stroller wrote:

> Hi there,
> 
> I want to try burning a DVD using k3b and when it starts up it
> complains:
> 
>     System locale charset is ANSI_X3.4-1968
>     Your system's locale charset (i.e. the charset used to encode
>     filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this
>     has been done intentionally. Most likely the locale is not set at
> all.
>     An invalid setting will result in problems when creating data
>     projects.
>     Solution: To properly set the locale charset make sure the LC_*
>     environment variables are set. Normally the distribution setup tools
>     take care of this.
> 
> 
> Googling "LC_* environment variables" turns up this doc:
> http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
> 
> I assume this document is correct & up to date?
> (and is not superseded by the LINGUAS="en_GB en" that I have in
> make.conf)
> 
> This doc refers to a /etc/env.d/02locale file - I assume I have to
> create that by hand? The file does not exist at present. I guess this
> is the kind of thing I'd kinda expect you to create by symlinking to /
> usr/share/linguas/England or something.
> 
> Finally, does anyone have the correct LANG and LC_COLLATE settings for
> the United Kingdom, please? I assume that again something starting
> "en_GB" is used.
> 
> Do I need to set ALL LC_* variables (the guide lists 9 of them) or
> just those 2?
> 
> This server is headless, so I'm using X11 over ssh - kcontrol's left-
> hand pane is blank.
> 
> Thanks in advance for any help,
> 
> Stroller.

Because I'm seeing some strange things in this thread, let me elucidate
as to what the various LANG/LC_* variables do:

LANG
    sets the default for LC_*, if unset, defaults to "C"

LC_CTYPE [charset]
LC_NUMERIC [number format]
LC_TIME [time format]
LC_COLLATE [sort order]
LC_MONETARY [money format]
LC_MESSAGES [message language]
LC_PAPER [paper size]
LC_NAME [given/family name format]
LC_ADDRESS [mailing address format]
LC_TELEPHONE [country code, etc.]
LC_MEASUREMENT [US customary, SI, etc.]
LC_IDENTIFICATION [???]
    Used as their names suggest, for the various things that can be
    done with locales.  Default to $LANG, if $LANG is unset, defaults
    to "C".

LC_ALL
    Override for LC_*.  If LC_ALL is set, then LC_* is ignored, and the
    value of LC_ALL is used for everything. *Do not* set this in env.d
    unless you know exactly what you are doing.  (Setting LC_ALL=C to
    disable all locale settings, for instance).

I hope this helps resolve any confusion.  If you want to see what the
current values of each of these variables is, including overrides, run 
`locale`.

-- 
ABCD




  parent reply	other threads:[~2009-07-11  3:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-10 21:48 [gentoo-user] LC_ locale settings for UK / GB Stroller
2009-07-10 23:02 ` Peter Ruskin
2009-07-10 23:19   ` [gentoo-user] " walt
2009-07-10 23:30   ` [gentoo-user] " Stroller
2009-07-10 23:05 ` [gentoo-user] " walt
2009-07-10 23:32   ` Stroller
2009-07-11  3:49 ` ABCD [this message]
2009-07-11 18:35   ` walt
2009-07-11 20:13     ` Stroller
2009-07-11 21:02       ` walt
2009-07-13 22:35       ` [gentoo-user] " ABCD

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='h39257$a7b$1@ger.gmane.org' \
    --to=en.abcd@gmail.com \
    --cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox