Gentoo Archives: gentoo-user

From: Daniel Pielmeier <daniel.pielmeier@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] K3b complains about my locale
Date: Thu, 29 May 2008 23:10:22
Message-Id: 483F37B6.2010706@googlemail.com
In Reply to: Re: [gentoo-user] K3b complains about my locale by Kevin O'Gorman
1 Kevin O'Gorman schrieb:
2 > On Thu, May 29, 2008 at 3:18 PM, Mick <michaelkintzios@×××××.com> wrote:
3 >
4 >> On Thursday 29 May 2008, Kevin O'Gorman wrote:
5 >>> On Thu, May 29, 2008 at 2:29 PM, Mick <michaelkintzios@×××××.com> wrote:
6 >>>> On Thursday 29 May 2008, Kevin O'Gorman wrote:
7 >>>>> When I crank up K3b, it complains about my setup, with the message
8 >>>>>
9 >>>>> "System locale charset is ANSI_X3.4-1968
10 >>>>> Your system's locale charset (i.e. the charset used to encode
11 >>>>> filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this
12 >>>>> has been done intentionally.
13 >>>>> Most likely the locale is not set at all. An invalid setting
14 >>>>> will result in problems when creating data projects.
15 >>>>> Solution: To properly set the locale charset make sure the LC_*
16 >>>>> environment variables are set. Normally the distribution setup tools
17 >>>>> take care of this."
18 >>>>>
19 >>>>> It is correct that this is not intentional (it does seem antique). I
20 >>>> have
21 >>>>
22 >>>>> configured .mybashrc to set my LANG to "en_US", but nothing beyond
23 >>>>> that. What "distribution setup tools" is it referring to, so that I
24 >> can
25 >>>>> correct this on gentoo?
26 >>>> What have you set up in your /etc/locale.gen ?
27 >>> I won't take credit for setting this up, because I don't think I did. On
28 >>> the other hand,
29 >>> I've had occasion to internationalize a web page to dutch and polish,
30 >> which
31 >>> appear
32 >>> in the list. So I dunno where it came from.
33 >>>
34 >>> But here's what's there:
35 >>>
36 >>> # /etc/locale.gen: list all of the locales you want to have on your
37 >> system
38 >>> #
39 >>> # The format of each line:
40 >>> # <locale> <charmap>
41 >>> #
42 >>> # Where <locale> is a locale located in /usr/share/i18n/locales/ and
43 >>> # where <charmap> is a charmap located in /usr/share/i18n/charmaps/.
44 >>> #
45 >>> # All blank lines and lines starting with # are ignored.
46 >>> #
47 >>> # For the default list of supported combinations, see the file:
48 >>> # /usr/share/i18n/SUPPORTED
49 >>> #
50 >>> # Whenever glibc is emerged, the locales listed here will be
51 >> automatically
52 >>> # rebuilt for you. After updating this file, you can simply run
53 >>> `locale-gen`
54 >>> # yourself instead of re-emerging glibc.
55 >>>
56 >>> en_US ISO-8859-1
57 >>> en_US.UTF-8 UTF-8
58 >>> #ja_JP.EUC-JP EUC-JP
59 >>> #ja_JP.UTF-8 UTF-8
60 >>> #ja_JP EUC-JP
61 >>> #en_HK ISO-8859-1
62 >>> #en_PH ISO-8859-1
63 >>> #de_DE ISO-8859-1
64 >>> #de_DE@euro ISO-8859-15
65 >>> es_MX ISO-8859-1
66 >>> #fa_IR UTF-8
67 >>> fr_FR ISO-8859-1
68 >>> fr_FR@euro ISO-8859-15
69 >>> #it_IT ISO-8859-1
70 >>> pl_PL ISO-8859-15
71 >> This looks fine. If when you run $ locale you get a list with LANG=en_US
72 >> but
73 >> further down LC_ALL= (blank), then set export LC_ALL=xxx in your .bashrc
74 >> to
75 >> whatever you want your locale set to.
76 >>
77 >
78 > Halfway there. I did that, and now "locale" looks like
79 >
80 > kevin@treat ~ $ locale
81 > LANG=en_US
82 > LC_CTYPE="en_US"
83 > LC_NUMERIC="en_US"
84 > LC_TIME="en_US"
85 > LC_COLLATE="en_US"
86 > LC_MONETARY="en_US"
87 > LC_MESSAGES="en_US"
88 > LC_PAPER="en_US"
89 > LC_NAME="en_US"
90 > LC_ADDRESS="en_US"
91 > LC_TELEPHONE="en_US"
92 > LC_MEASUREMENT="en_US"
93 > LC_IDENTIFICATION="en_US"
94 > LC_ALL=en_US
95 > kevin@treat ~ $
96 >
97 > However, when I start k3b from the KDE menus, it still complains.
98 >
99 > On the other hand, if I start k3b from the shell that gives the "locale"
100 > results above,
101 > it starts clean. So the issue seems to be that I need to inform KDE about
102 > the
103 > locale.
104 >
105 > I did a fresh boot, and that did not help, so I wonder if .mybashrc is the
106 > correct
107 > place to do this.
108 >
109
110 try /etc/env.d/02locale
111
112 LANG="en_US"
113 LC_ALL="en_US"
114
115 For details take a look at the localisation guide.
116 http://www.gentoo.org/doc/en/guide-localization.xml
117 --
118 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] K3b complains about my locale Kevin O'Gorman <kogorman@×××××.com>