Gentoo Archives: gentoo-user

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

Replies

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