Re: [gentoo-user] K3b complains about my locale (SOLVED)

2008-06-02 Thread Kevin O'Gorman
On Sun, Jun 1, 2008 at 6:45 PM, b.n. [EMAIL PROTECTED] wrote:

 Kevin O'Gorman ha scritto:

 TOP POSTED SUMMARY: operator error.  An incorrect setting of LANG and
 LC_ALL were in /etc/profile.
 They had been suggested by the guide, but were incorrectly done and
 override the results of all the
 02locale and locale.gen things.

 Now one X restart later, k3b and perl and I are all happy.

 Thanks for suggesting a re-reading, Daniel.


 Could you please provide the solution? I have the same problem and the
 thread is all but clear to me.


 In my case, the solution was to remove the (incorrect) LANG and LC_ALL
assignments I had edited into
/etc/profile.  The 02locale and locale.gen files did the job correctly.

I tracked this down by putting a lot of debugging stuff in the various shell
startup files.  They looked like this:
[ -e /etc/conf.d/D ]  echo This is /etc/profile\; LANG is $LANG\; LC_ALL
is $LC_ALL
...
[ -e /etc/conf.d/D ]  echo End of /etc/profile\; LANG is $LANG\; LC_ALL is
$LC_ALL

And I can switch them on and off by creating/rm-ing /etc/conf.d/D.  This
showed me where the variables
were getting values, and what the values were.  By the time I was done, I
had them in
~/.bashrc
~/.mybashrc (you may or may not have this file)
~/.bash_profile
/etc/profile
/etc/bash/bashrc

They are still there, but inactive since I have deleted /etc/conf.d/D (a
file of my own creation).  If you don't use
bash, you'll have to design your own variant of this approach.

++ kevin

-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-06-01 Thread Kevin O'Gorman
On Sat, May 31, 2008 at 10:49 PM, Daniel Pielmeier 
[EMAIL PROTECTED] wrote:

 Kevin O'Gorman schrieb:

  On Sat, May 31, 2008 at 12:38 PM, Neil Bothwick [EMAIL PROTECTED]
 wrote:

  On Sat, 31 May 2008 07:05:14 -0700, Kevin O'Gorman wrote:

  Just to be sure, I re-ran locale-gen just now.  It reported two
 problems with a Polish locale (that I do not use):

 Then remove it from /etc/locale.gen. you can remove the Spanish and
 French ones too, if you don't use those languages.

 I did, just as an experiment.  It made no difference to the main issue:
 no

 locale is defined
 for programs started from KDE menus, and K3B is complaining about the
 resulting
 ASCII (1968) definition.

 I'd rather that the locale-gen worked, but that's a side issue.


 Do you have something like LINGUAS=en in /etc/make.conf?


Yes, it reads

 LINGUAS=en fr de es pl

Because while I don't ordinarily use other languages, I have in the past had
to edit
some i18n files for a web page of mine.  See
http://hex.kosmanor.com/hex-bin/board,
which currently speaks English, Polish and Dutch.


 You can try to use the unicode charset [1] in /etc/env.d/02locale, maybe
 k3b wants this.

 LANG=en_US.utf8
 LC_ALL=en_US.utf8


 I also suggest going through the guide again and read thoroughly, often
 there is only a tiny mistake a typo or something which makes things fail.

 Can you tell us the output of:

 locale
 locale -a
 cat /etc/locale.gen


Of course.  Included at the bottom.



 [1] http://www.gentoo.org/doc/en/utf-8.xml

 Veeery Interesting

I didn't notice it at first, but the 02locale as suggested is making my Perl
scripts issue warnings,
including some very simple ones I wrote myself, so it's Perl itself that is
complaining.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = en_EN,
LANG = en_EN
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).

Anyway, I added .utf8 to the lines in my 02locale file, and it made no
difference at all.
I don't see utf8 in any of the outputs, and k3b and perl still don't like
it.

The outputs requested (plus my 02locale file) were:

[EMAIL PROTECTED] ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_EN
LC_CTYPE=en_EN
LC_NUMERIC=en_EN
LC_TIME=en_EN
LC_COLLATE=en_EN
LC_MONETARY=en_EN
LC_MESSAGES=en_EN
LC_PAPER=en_EN
LC_NAME=en_EN
LC_ADDRESS=en_EN
LC_TELEPHONE=en_EN
LC_MEASUREMENT=en_EN
LC_IDENTIFICATION=en_EN
LC_ALL=en_EN
[EMAIL PROTECTED] ~ $ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.utf8
es_MX
fr_FR
[EMAIL PROTECTED]
[EMAIL PROTECTED] ~ $ cat /etc/locale.gen
# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run
`locale-gen`
# yourself instead of re-emerging glibc.

en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
es_MX ISO-8859-1
#fa_IR UTF-8
fr_FR ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
#it_IT ISO-8859-1
#pl_PL ISO-8859-15


[EMAIL PROTECTED] ~ $ cat /etc/env.d/02locale
LANG=en_US.utf8
LC_ALL=en_us.utf8
[EMAIL PROTECTED] ~ $


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-06-01 Thread Daniel Pielmeier

Kevin O'Gorman schrieb:
  perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = en_EN,
LANG = en_EN
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).




Anyway, I added .utf8 to the lines in my 02locale file, and it made no
difference at all.
I don't see utf8 in any of the outputs, and k3b and perl still don't like
it.

The outputs requested (plus my 02locale file) were:

[EMAIL PROTECTED] ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_EN
LC_CTYPE=en_EN
LC_NUMERIC=en_EN
LC_TIME=en_EN
LC_COLLATE=en_EN
LC_MONETARY=en_EN
LC_MESSAGES=en_EN
LC_PAPER=en_EN
LC_NAME=en_EN
LC_ADDRESS=en_EN
LC_TELEPHONE=en_EN
LC_MEASUREMENT=en_EN
LC_IDENTIFICATION=en_EN
LC_ALL=en_EN
[EMAIL PROTECTED] ~ $ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.utf8
es_MX
fr_FR
[EMAIL PROTECTED]
[EMAIL PROTECTED] ~ $ cat /etc/locale.gen
# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run
`locale-gen`
# yourself instead of re-emerging glibc.

en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
es_MX ISO-8859-1
#fa_IR UTF-8
fr_FR ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
#it_IT ISO-8859-1
#pl_PL ISO-8859-15


[EMAIL PROTECTED] ~ $ cat /etc/env.d/02locale
LANG=en_US.utf8
LC_ALL=en_us.utf8
[EMAIL PROTECTED] ~ $




Here is my output which I guess is correct as it works fine for me!

[EMAIL PROTECTED] ~ $ locale
LANG=de_DE.utf8
LC_CTYPE=de_DE.utf8
LC_NUMERIC=de_DE.utf8
LC_TIME=de_DE.utf8
LC_COLLATE=de_DE.utf8
LC_MONETARY=de_DE.utf8
LC_MESSAGES=de_DE.utf8
LC_PAPER=de_DE.utf8
LC_NAME=de_DE.utf8
LC_ADDRESS=de_DE.utf8
LC_TELEPHONE=de_DE.utf8
LC_MEASUREMENT=de_DE.utf8
LC_IDENTIFICATION=de_DE.utf8
LC_ALL=de_DE.utf8

[EMAIL PROTECTED] ~ $ locale -a
C
de_DE
[EMAIL PROTECTED]
de_DE.utf8
en_GB
en_GB.utf8
en_US
en_US.utf8
POSIX

[EMAIL PROTECTED] ~ $ cat /etc/locale.gen
# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run 
`locale-gen`

# yourself instead of re-emerging glibc.

en_US.UTF-8 UTF-8
en_US ISO-8859-1
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
de_DE.UTF-8 UTF-8
de_DE ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15


[EMAIL PROTECTED] ~ $ cat /etc/env.d/02locale
LANG=de_DE.utf8
LC_ALL=de_DE.utf8
GDM_LANG=de_DE.utf8
LC_CTYPE=de_DE.utf8
LC_NUMERIC=de_DE.utf8
LC_TIME=de_DE.utf8
LC_COLLATE=de_DE.utf8
LC_MONETARY=de_DE.utf8
LC_MESSAGES=en_US.utf8
LC_PAPER=de_DE.utf8
LC_NAME=de_DE.utf8
LC_ADDRESS=de_DE.utf8
LC_TELEPHONE=de_DE.utf8
LC_MEASUREMENT=de_DE.utf8
LC_IDENTIFICATION=de_DE.utf8

Maybe locale-gen is not working properly at your system as perl says the 
locales are not installed. What are the contents of /usr/lib/locale/?


I am guessing this as your locale output looks really weird. It does 
not show the .utf8 parts. And en_EN also looks strange as it is not a 
valid locale. It should be for instance LANG=en_US.utf8 like in 
02locale. Plus the error messages of missing directories for LC_CTYPE 
LC_MESSAGES and LC_COLLATE.


Your settings in locale.gen and 02locale look correct. Could it be 
possible that your perl scripts or any other home brewed things are 
messing this up!


Regards,

Daniel
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] K3b complains about my locale (SOLVED)

2008-06-01 Thread Kevin O'Gorman
TOP POSTED SUMMARY: operator error.  An incorrect setting of LANG and LC_ALL
were in /etc/profile.
They had been suggested by the guide, but were incorrectly done and override
the results of all the
02locale and locale.gen things.

Now one X restart later, k3b and perl and I are all happy.

Thanks for suggesting a re-reading, Daniel.

++ kevin


On Sun, Jun 1, 2008 at 4:05 PM, Daniel Pielmeier 
[EMAIL PROTECTED] wrote:

 Kevin O'Gorman schrieb:

   perl: warning: Setting locale failed.

 perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = en_EN,
LANG = en_EN
are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).



  Anyway, I added .utf8 to the lines in my 02locale file, and it made no
 difference at all.
 I don't see utf8 in any of the outputs, and k3b and perl still don't like
 it.

 The outputs requested (plus my 02locale file) were:

 [EMAIL PROTECTED] ~ $ locale
 locale: Cannot set LC_CTYPE to default locale: No such file or directory
 locale: Cannot set LC_MESSAGES to default locale: No such file or
 directory
 locale: Cannot set LC_ALL to default locale: No such file or directory
 LANG=en_EN
 LC_CTYPE=en_EN
 LC_NUMERIC=en_EN
 LC_TIME=en_EN
 LC_COLLATE=en_EN
 LC_MONETARY=en_EN
 LC_MESSAGES=en_EN
 LC_PAPER=en_EN
 LC_NAME=en_EN
 LC_ADDRESS=en_EN
 LC_TELEPHONE=en_EN
 LC_MEASUREMENT=en_EN
 LC_IDENTIFICATION=en_EN
 LC_ALL=en_EN
 [EMAIL PROTECTED] ~ $ locale -a
 locale: Cannot set LC_CTYPE to default locale: No such file or directory
 locale: Cannot set LC_MESSAGES to default locale: No such file or
 directory
 locale: Cannot set LC_COLLATE to default locale: No such file or directory
 C
 POSIX
 en_US
 en_US.utf8
 es_MX
 fr_FR
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] ~ $ cat /etc/locale.gen
 # /etc/locale.gen: list all of the locales you want to have on your system
 #
 # The format of each line:
 # locale charmap
 #
 # Where locale is a locale located in /usr/share/i18n/locales/ and
 # where charmap is a charmap located in /usr/share/i18n/charmaps/.
 #
 # All blank lines and lines starting with # are ignored.
 #
 # For the default list of supported combinations, see the file:
 # /usr/share/i18n/SUPPORTED
 #
 # Whenever glibc is emerged, the locales listed here will be automatically
 # rebuilt for you.  After updating this file, you can simply run
 `locale-gen`
 # yourself instead of re-emerging glibc.

 en_US ISO-8859-1
 en_US.UTF-8 UTF-8
 #ja_JP.EUC-JP EUC-JP
 #ja_JP.UTF-8 UTF-8
 #ja_JP EUC-JP
 #en_HK ISO-8859-1
 #en_PH ISO-8859-1
 #de_DE ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 es_MX ISO-8859-1
 #fa_IR UTF-8
 fr_FR ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 #it_IT ISO-8859-1
 #pl_PL ISO-8859-15


 [EMAIL PROTECTED] ~ $ cat /etc/env.d/02locale
 LANG=en_US.utf8
 LC_ALL=en_us.utf8
 [EMAIL PROTECTED] ~ $



 Here is my output which I guess is correct as it works fine for me!

 [EMAIL PROTECTED] ~ $ locale
 LANG=de_DE.utf8
 LC_CTYPE=de_DE.utf8
 LC_NUMERIC=de_DE.utf8
 LC_TIME=de_DE.utf8
 LC_COLLATE=de_DE.utf8
 LC_MONETARY=de_DE.utf8
 LC_MESSAGES=de_DE.utf8
 LC_PAPER=de_DE.utf8
 LC_NAME=de_DE.utf8
 LC_ADDRESS=de_DE.utf8
 LC_TELEPHONE=de_DE.utf8
 LC_MEASUREMENT=de_DE.utf8
 LC_IDENTIFICATION=de_DE.utf8
 LC_ALL=de_DE.utf8

 [EMAIL PROTECTED] ~ $ locale -a
 C
 de_DE
 [EMAIL PROTECTED]
 de_DE.utf8
 en_GB
 en_GB.utf8
 en_US
 en_US.utf8
 POSIX

 [EMAIL PROTECTED] ~ $ cat /etc/locale.gen
 # /etc/locale.gen: list all of the locales you want to have on your system
 #
 # The format of each line:
 # locale charmap
 #
 # Where locale is a locale located in /usr/share/i18n/locales/ and
 # where charmap is a charmap located in /usr/share/i18n/charmaps/.
 #
 # All blank lines and lines starting with # are ignored.
 #
 # For the default list of supported combinations, see the file:
 # /usr/share/i18n/SUPPORTED
 #
 # Whenever glibc is emerged, the locales listed here will be automatically
 # rebuilt for you.  After updating this file, you can simply run
 `locale-gen`
 # yourself instead of re-emerging glibc.

 en_US.UTF-8 UTF-8
 en_US ISO-8859-1
 en_GB.UTF-8 UTF-8
 en_GB ISO-8859-1
 de_DE.UTF-8 UTF-8
 de_DE ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15


 [EMAIL PROTECTED] ~ $ cat /etc/env.d/02locale
 LANG=de_DE.utf8
 LC_ALL=de_DE.utf8
 GDM_LANG=de_DE.utf8
 LC_CTYPE=de_DE.utf8
 LC_NUMERIC=de_DE.utf8
 LC_TIME=de_DE.utf8
 LC_COLLATE=de_DE.utf8
 LC_MONETARY=de_DE.utf8
 LC_MESSAGES=en_US.utf8
 LC_PAPER=de_DE.utf8
 LC_NAME=de_DE.utf8
 LC_ADDRESS=de_DE.utf8
 LC_TELEPHONE=de_DE.utf8
 LC_MEASUREMENT=de_DE.utf8
 LC_IDENTIFICATION=de_DE.utf8

 Maybe locale-gen is not working properly at your system as perl says the
 locales are not installed. What are the contents of /usr/lib/locale/?

 I am guessing this as your locale output looks really weird. It does not
 show the .utf8 parts. And en_EN also looks strange as it is not a valid
 locale. It should be for instance LANG=en_US.utf8 like in 02locale. Plus the
 error messages of missing 

Re: [gentoo-user] K3b complains about my locale (SOLVED)

2008-06-01 Thread b.n.

Kevin O'Gorman ha scritto:
TOP POSTED SUMMARY: operator error.  An incorrect setting of LANG and 
LC_ALL were in /etc/profile.
They had been suggested by the guide, but were incorrectly done and 
override the results of all the

02locale and locale.gen things.

Now one X restart later, k3b and perl and I are all happy.

Thanks for suggesting a re-reading, Daniel.


Could you please provide the solution? I have the same problem and the 
thread is all but clear to me.


m.

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] K3b complains about my locale

2008-05-31 Thread Mick
On Saturday 31 May 2008, Kevin O'Gorman wrote:

 I did not have 02locale in /etc/env.d/dir, although there was a lot of
 other stuff in that directory.
 I added the two lines.
 I ran env-update
 I ctl-alt-backspace restarted my KDE/X system
 I clicked k3b on the Multimedia submenu

 It barked at me again about x3.4-1968.

 So something isn't getting set up.

 I have a feeling about 02locale being so specific.  Why 02.  Back in
 the days when I had
 a similar thing going on with SysV Init, we had such stuff in our rc.d
 directory for run levels.
 Most of those files got installed by particular owning packages.  Would
 anyone who has
 this file, and does not think they created it from scratch, please find out
 what package
 it belongs to?  Thanks.

I can't comment on the 02locale, because I have not used it.  However, on my 
machine setting up either the LANG=en_GB, or LC_ALL=en_GB does the trick and 
k3b does not complain about charset ANSI_X3.4-1968 and what not.  

Just a thought - have you run # locale-gen first?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] K3b complains about my locale

2008-05-31 Thread Kevin O'Gorman
On Sat, May 31, 2008 at 12:53 AM, Mick [EMAIL PROTECTED] wrote:

 On Saturday 31 May 2008, Kevin O'Gorman wrote:

  I did not have 02locale in /etc/env.d/dir, although there was a lot of
  other stuff in that directory.
  I added the two lines.
  I ran env-update
  I ctl-alt-backspace restarted my KDE/X system
  I clicked k3b on the Multimedia submenu
 
  It barked at me again about x3.4-1968.
 
  So something isn't getting set up.
 
  I have a feeling about 02locale being so specific.  Why 02.  Back in
  the days when I had
  a similar thing going on with SysV Init, we had such stuff in our rc.d
  directory for run levels.
  Most of those files got installed by particular owning packages.  Would
  anyone who has
  this file, and does not think they created it from scratch, please find
 out
  what package
  it belongs to?  Thanks.

 I can't comment on the 02locale, because I have not used it.  However, on
 my
 machine setting up either the LANG=en_GB, or LC_ALL=en_GB does the trick
 and
 k3b does not complain about charset ANSI_X3.4-1968 and what not.

 Just a thought - have you run # locale-gen first?
 --

 Just to be sure, I re-ran locale-gen just now.  It reported two problems
with a Polish
locale (that I do not use):

treat ~ # locale-gen
 * Generating 6 locales (this might take a while) with 1 jobs
 *  (1/6) Generating en_US.ISO-8859-1 ...  [ ok ]
 *  (2/6) Generating en_US.UTF-8 ...  [ ok ]
 *  (3/6) Generating es_MX.ISO-8859-1 ...   [ ok ]
 *  (4/6) Generating fr_FR.ISO-8859-1 ... [ ok ]
 *  (5/6) Generating [EMAIL PROTECTED] ... [ ok ]
 *  (6/6) Generating pl_PL.ISO-8859-15 ...
/usr/share/i18n/locales/pl_PL:2130: LC_MONETARY: unknown character in field
`currency_symbol'
/usr/share/i18n/locales/pl_PL:2161: LC_TIME: unknown character in field
`day'  [ !! ]
 * Generation complete
treat ~ #


I then ran env-update, restarted X, chose K3B from a KDE menu, and it
complained again.
So: no joy.


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-05-31 Thread Neil Bothwick
On Sat, 31 May 2008 07:05:14 -0700, Kevin O'Gorman wrote:

 Just to be sure, I re-ran locale-gen just now.  It reported two
 problems with a Polish locale (that I do not use):

Then remove it from /etc/locale.gen. you can remove the Spanish and
French ones too, if you don't use those languages.


-- 
Neil Bothwick

Top Oxymorons Number 5: Twelve-ounce pound cake


signature.asc
Description: PGP signature


Re: [gentoo-user] K3b complains about my locale

2008-05-31 Thread Kevin O'Gorman
On Sat, May 31, 2008 at 12:38 PM, Neil Bothwick [EMAIL PROTECTED] wrote:

 On Sat, 31 May 2008 07:05:14 -0700, Kevin O'Gorman wrote:

  Just to be sure, I re-ran locale-gen just now.  It reported two
  problems with a Polish locale (that I do not use):

 Then remove it from /etc/locale.gen. you can remove the Spanish and
 French ones too, if you don't use those languages.

 I did, just as an experiment.  It made no difference to the main issue: no
locale is defined
for programs started from KDE menus, and K3B is complaining about the
resulting
ASCII (1968) definition.

I'd rather that the locale-gen worked, but that's a side issue.


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-05-31 Thread Daniel Pielmeier

Kevin O'Gorman schrieb:

On Sat, May 31, 2008 at 12:38 PM, Neil Bothwick [EMAIL PROTECTED] wrote:


On Sat, 31 May 2008 07:05:14 -0700, Kevin O'Gorman wrote:


Just to be sure, I re-ran locale-gen just now.  It reported two
problems with a Polish locale (that I do not use):

Then remove it from /etc/locale.gen. you can remove the Spanish and
French ones too, if you don't use those languages.

I did, just as an experiment.  It made no difference to the main issue: no

locale is defined
for programs started from KDE menus, and K3B is complaining about the
resulting
ASCII (1968) definition.

I'd rather that the locale-gen worked, but that's a side issue.



Do you have something like LINGUAS=en in /etc/make.conf?

You can try to use the unicode charset [1] in /etc/env.d/02locale, maybe
k3b wants this.

LANG=en_US.utf8
LC_ALL=en_US.utf8


I also suggest going through the guide again and read thoroughly, often
there is only a tiny mistake a typo or something which makes things fail.

Can you tell us the output of:

locale
locale -a
cat /etc/locale.gen


[1] http://www.gentoo.org/doc/en/utf-8.xml

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] K3b complains about my locale

2008-05-30 Thread Kevin O'Gorman
On Thu, May 29, 2008 at 4:09 PM, Daniel Pielmeier 
[EMAIL PROTECTED] wrote:

 Kevin O'Gorman schrieb:

  On Thu, May 29, 2008 at 3:18 PM, Mick [EMAIL PROTECTED] wrote:

  On Thursday 29 May 2008, Kevin O'Gorman wrote:

 On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED]
 wrote:

 On Thursday 29 May 2008, Kevin O'Gorman wrote:

 When I crank up K3b, it complains about my setup, with the message

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.

 It is correct that this is not intentional (it does seem antique).  I

 have

  configured .mybashrc to set my LANG to en_US, but nothing beyond
 that. What distribution setup tools is it referring to, so that I

 can

 correct this on gentoo?

 What have you set up in your /etc/locale.gen ?

 I won't take credit for setting this up, because I don't think I did.
  On
 the other hand,
 I've had occasion to internationalize a web page to dutch and polish,

 which

 appear
 in the list.  So I dunno where it came from.

 But here's what's there:

 # /etc/locale.gen: list all of the locales you want to have on your

 system

 #
 # The format of each line:
 # locale charmap
 #
 # Where locale is a locale located in /usr/share/i18n/locales/ and
 # where charmap is a charmap located in /usr/share/i18n/charmaps/.
 #
 # All blank lines and lines starting with # are ignored.
 #
 # For the default list of supported combinations, see the file:
 # /usr/share/i18n/SUPPORTED
 #
 # Whenever glibc is emerged, the locales listed here will be

 automatically

 # rebuilt for you.  After updating this file, you can simply run
 `locale-gen`
 # yourself instead of re-emerging glibc.

 en_US ISO-8859-1
 en_US.UTF-8 UTF-8
 #ja_JP.EUC-JP EUC-JP
 #ja_JP.UTF-8 UTF-8
 #ja_JP EUC-JP
 #en_HK ISO-8859-1
 #en_PH ISO-8859-1
 #de_DE ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 es_MX ISO-8859-1
 #fa_IR UTF-8
 fr_FR ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 #it_IT ISO-8859-1
 pl_PL ISO-8859-15

 This looks fine.  If when you run $ locale you get a list with LANG=en_US
 but
 further down LC_ALL=   (blank), then set export LC_ALL=xxx in your
 .bashrc
 to
 whatever you want your locale set to.


 Halfway there.  I did that, and now locale looks like

 [EMAIL PROTECTED] ~ $ locale
 LANG=en_US
 LC_CTYPE=en_US
 LC_NUMERIC=en_US
 LC_TIME=en_US
 LC_COLLATE=en_US
 LC_MONETARY=en_US
 LC_MESSAGES=en_US
 LC_PAPER=en_US
 LC_NAME=en_US
 LC_ADDRESS=en_US
 LC_TELEPHONE=en_US
 LC_MEASUREMENT=en_US
 LC_IDENTIFICATION=en_US
 LC_ALL=en_US
 [EMAIL PROTECTED] ~ $

 However, when I start k3b from the KDE menus, it still complains.

 On the other hand, if I start k3b from the shell that gives the locale
 results above,
 it starts clean.  So the issue seems to be that I need to inform KDE about
 the
 locale.

 I did a fresh boot, and that did not help, so I wonder if .mybashrc is the
 correct
 place to do this.


 try /etc/env.d/02locale

 LANG=en_US
 LC_ALL=en_US

 For details take a look at the localisation guide.
 http://www.gentoo.org/doc/en/guide-localization.xml
 --
 gentoo-user@lists.gentoo.org mailing list


The file /etc/env.d/02locale does not exist on my system.  I can create it,
of course,
but I suspect I may be missing something.  Is there a package I should
emerge?

++ kevin

-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-05-30 Thread Dominik Zajac
if theres no file 02local you have to create it and set your locales there.
after donig this run env-update

regards

Dominik

On Fri, May 30, 2008 at 3:34 PM, Kevin O'Gorman [EMAIL PROTECTED] wrote:

 On Thu, May 29, 2008 at 4:09 PM, Daniel Pielmeier 
 [EMAIL PROTECTED] wrote:

 Kevin O'Gorman schrieb:

  On Thu, May 29, 2008 at 3:18 PM, Mick [EMAIL PROTECTED] wrote:

  On Thursday 29 May 2008, Kevin O'Gorman wrote:

 On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED]
 wrote:

 On Thursday 29 May 2008, Kevin O'Gorman wrote:

 When I crank up K3b, it complains about my setup, with the message

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.

 It is correct that this is not intentional (it does seem antique).  I

 have

  configured .mybashrc to set my LANG to en_US, but nothing beyond
 that. What distribution setup tools is it referring to, so that I

 can

  correct this on gentoo?

 What have you set up in your /etc/locale.gen ?

 I won't take credit for setting this up, because I don't think I did.
  On
 the other hand,
 I've had occasion to internationalize a web page to dutch and polish,

 which

 appear
 in the list.  So I dunno where it came from.

 But here's what's there:

 # /etc/locale.gen: list all of the locales you want to have on your

 system

 #
 # The format of each line:
 # locale charmap
 #
 # Where locale is a locale located in /usr/share/i18n/locales/ and
 # where charmap is a charmap located in /usr/share/i18n/charmaps/.
 #
 # All blank lines and lines starting with # are ignored.
 #
 # For the default list of supported combinations, see the file:
 # /usr/share/i18n/SUPPORTED
 #
 # Whenever glibc is emerged, the locales listed here will be

 automatically

 # rebuilt for you.  After updating this file, you can simply run
 `locale-gen`
 # yourself instead of re-emerging glibc.

 en_US ISO-8859-1
 en_US.UTF-8 UTF-8
 #ja_JP.EUC-JP EUC-JP
 #ja_JP.UTF-8 UTF-8
 #ja_JP EUC-JP
 #en_HK ISO-8859-1
 #en_PH ISO-8859-1
 #de_DE ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 es_MX ISO-8859-1
 #fa_IR UTF-8
 fr_FR ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 #it_IT ISO-8859-1
 pl_PL ISO-8859-15

 This looks fine.  If when you run $ locale you get a list with
 LANG=en_US
 but
 further down LC_ALL=   (blank), then set export LC_ALL=xxx in your
 .bashrc
 to
 whatever you want your locale set to.


 Halfway there.  I did that, and now locale looks like

 [EMAIL PROTECTED] ~ $ locale
 LANG=en_US
 LC_CTYPE=en_US
 LC_NUMERIC=en_US
 LC_TIME=en_US
 LC_COLLATE=en_US
 LC_MONETARY=en_US
 LC_MESSAGES=en_US
 LC_PAPER=en_US
 LC_NAME=en_US
 LC_ADDRESS=en_US
 LC_TELEPHONE=en_US
 LC_MEASUREMENT=en_US
 LC_IDENTIFICATION=en_US
 LC_ALL=en_US
 [EMAIL PROTECTED] ~ $

 However, when I start k3b from the KDE menus, it still complains.

 On the other hand, if I start k3b from the shell that gives the locale
 results above,
 it starts clean.  So the issue seems to be that I need to inform KDE
 about
 the
 locale.

 I did a fresh boot, and that did not help, so I wonder if .mybashrc is
 the
 correct
 place to do this.


 try /etc/env.d/02locale

 LANG=en_US
 LC_ALL=en_US

 For details take a look at the localisation guide.
 http://www.gentoo.org/doc/en/guide-localization.xml
 --
 gentoo-user@lists.gentoo.org mailing list


 The file /etc/env.d/02locale does not exist on my system.  I can create it,
 of course,
 but I suspect I may be missing something.  Is there a package I should
 emerge?

 ++ kevin

 --
 Kevin O'Gorman, PhD



RE: [gentoo-user] K3b complains about my locale

2008-05-30 Thread Marzan, Richard non Unisys
From: Dominik Zajac [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 10:24 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] K3b complains about my locale

if theres no file 02local you have to create it and set your locales there. 
after donig this run env-update

regards

Dominik
On Fri, May 30, 2008 at 3:34 PM, Kevin O'Gorman [EMAIL PROTECTED] wrote:
On Thu, May 29, 2008 at 4:09 PM, Daniel Pielmeier [EMAIL PROTECTED] wrote:
Kevin O'Gorman schrieb:

On Thu, May 29, 2008 at 3:18 PM, Mick [EMAIL PROTECTED] wrote:
On Thursday 29 May 2008, Kevin O'Gorman wrote:
On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED] wrote:
On Thursday 29 May 2008, Kevin O'Gorman wrote:
When I crank up K3b, it complains about my setup, with the message

   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.

It is correct that this is not intentional (it does seem antique).  I
have
configured .mybashrc to set my LANG to en_US, but nothing beyond
that. What distribution setup tools is it referring to, so that I
can
correct this on gentoo?
What have you set up in your /etc/locale.gen ?
I won't take credit for setting this up, because I don't think I did.  On
the other hand,
I've had occasion to internationalize a web page to dutch and polish,
which
appear
in the list.  So I dunno where it came from.

But here's what's there:

# /etc/locale.gen: list all of the locales you want to have on your
system
#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be
automatically
# rebuilt for you.  After updating this file, you can simply run
`locale-gen`
# yourself instead of re-emerging glibc.

en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
es_MX ISO-8859-1
#fa_IR UTF-8
fr_FR ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
#it_IT ISO-8859-1
pl_PL ISO-8859-15
This looks fine.  If when you run $ locale you get a list with LANG=en_US
but
further down LC_ALL=   (blank), then set export LC_ALL=xxx in your .bashrc
to
whatever you want your locale set to.

Halfway there.  I did that, and now locale looks like

[EMAIL PROTECTED] ~ $ locale
LANG=en_US
LC_CTYPE=en_US
LC_NUMERIC=en_US
LC_TIME=en_US
LC_COLLATE=en_US
LC_MONETARY=en_US
LC_MESSAGES=en_US
LC_PAPER=en_US
LC_NAME=en_US
LC_ADDRESS=en_US
LC_TELEPHONE=en_US
LC_MEASUREMENT=en_US
LC_IDENTIFICATION=en_US
LC_ALL=en_US
[EMAIL PROTECTED] ~ $

However, when I start k3b from the KDE menus, it still complains.

On the other hand, if I start k3b from the shell that gives the locale
results above,
it starts clean.  So the issue seems to be that I need to inform KDE about
the
locale.

I did a fresh boot, and that did not help, so I wonder if .mybashrc is the
correct
place to do this.

try /etc/env.d/02locale

LANG=en_US
LC_ALL=en_US

For details take a look at the localisation guide. 
http://www.gentoo.org/doc/en/guide-localization.xml
-- 
gentoo-user@lists.gentoo.org mailing list

The file /etc/env.d/02locale does not exist on my system.  I can create it, of 
course,
but I suspect I may be missing something.  Is there a package I should emerge?

++ kevin

-- 
Kevin O'Gorman, PhD






I guarantee that those instructions will work for you. Check to see if you have 
02locale in your /etc/env.d/ dir.


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] K3b complains about my locale

2008-05-30 Thread Kevin O'Gorman
On Fri, May 30, 2008 at 12:06 PM, Marzan, Richard non Unisys 
[EMAIL PROTECTED] wrote:

 From: Dominik Zajac [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 30, 2008 10:24 AM
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] K3b complains about my locale

 if theres no file 02local you have to create it and set your locales there.
 after donig this run env-update

 regards

 Dominik
 On Fri, May 30, 2008 at 3:34 PM, Kevin O'Gorman [EMAIL PROTECTED]
 wrote:
 On Thu, May 29, 2008 at 4:09 PM, Daniel Pielmeier 
 [EMAIL PROTECTED] wrote:
 Kevin O'Gorman schrieb:

 On Thu, May 29, 2008 at 3:18 PM, Mick [EMAIL PROTECTED] wrote:
 On Thursday 29 May 2008, Kevin O'Gorman wrote:
 On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED] wrote:
 On Thursday 29 May 2008, Kevin O'Gorman wrote:
 When I crank up K3b, it complains about my setup, with the message

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.

 It is correct that this is not intentional (it does seem antique).  I
 have
 configured .mybashrc to set my LANG to en_US, but nothing beyond
 that. What distribution setup tools is it referring to, so that I
 can
 correct this on gentoo?
 What have you set up in your /etc/locale.gen ?
 I won't take credit for setting this up, because I don't think I did.  On
 the other hand,
 I've had occasion to internationalize a web page to dutch and polish,
 which
 appear
 in the list.  So I dunno where it came from.

 But here's what's there:

 # /etc/locale.gen: list all of the locales you want to have on your
 system
 #
 # The format of each line:
 # locale charmap
 #
 # Where locale is a locale located in /usr/share/i18n/locales/ and
 # where charmap is a charmap located in /usr/share/i18n/charmaps/.
 #
 # All blank lines and lines starting with # are ignored.
 #
 # For the default list of supported combinations, see the file:
 # /usr/share/i18n/SUPPORTED
 #
 # Whenever glibc is emerged, the locales listed here will be
 automatically
 # rebuilt for you.  After updating this file, you can simply run
 `locale-gen`
 # yourself instead of re-emerging glibc.

 en_US ISO-8859-1
 en_US.UTF-8 UTF-8
 #ja_JP.EUC-JP EUC-JP
 #ja_JP.UTF-8 UTF-8
 #ja_JP EUC-JP
 #en_HK ISO-8859-1
 #en_PH ISO-8859-1
 #de_DE ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 es_MX ISO-8859-1
 #fa_IR UTF-8
 fr_FR ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 #it_IT ISO-8859-1
 pl_PL ISO-8859-15
 This looks fine.  If when you run $ locale you get a list with LANG=en_US
 but
 further down LC_ALL=   (blank), then set export LC_ALL=xxx in your .bashrc
 to
 whatever you want your locale set to.

 Halfway there.  I did that, and now locale looks like

 [EMAIL PROTECTED] ~ $ locale
 LANG=en_US
 LC_CTYPE=en_US
 LC_NUMERIC=en_US
 LC_TIME=en_US
 LC_COLLATE=en_US
 LC_MONETARY=en_US
 LC_MESSAGES=en_US
 LC_PAPER=en_US
 LC_NAME=en_US
 LC_ADDRESS=en_US
 LC_TELEPHONE=en_US
 LC_MEASUREMENT=en_US
 LC_IDENTIFICATION=en_US
 LC_ALL=en_US
 [EMAIL PROTECTED] ~ $

 However, when I start k3b from the KDE menus, it still complains.

 On the other hand, if I start k3b from the shell that gives the locale
 results above,
 it starts clean.  So the issue seems to be that I need to inform KDE about
 the
 locale.

 I did a fresh boot, and that did not help, so I wonder if .mybashrc is the
 correct
 place to do this.

 try /etc/env.d/02locale

 LANG=en_US
 LC_ALL=en_US

 For details take a look at the localisation guide.
 http://www.gentoo.org/doc/en/guide-localization.xml
 --
 gentoo-user@lists.gentoo.org mailing list

 The file /etc/env.d/02locale does not exist on my system.  I can create it,
 of course,
 but I suspect I may be missing something.  Is there a package I should
 emerge?

 ++ kevin

 --
 Kevin O'Gorman, PhD






 I guarantee that those instructions will work for you. Check to see if you
 have 02locale in your /etc/env.d/ dir.


 --
 gentoo-user@lists.gentoo.org mailing list

 It looks like I'd collect on that guarantee.
I did not have 02locale in /etc/env.d/dir, although there was a lot of other
stuff in that directory.
I added the two lines.
I ran env-update
I ctl-alt-backspace restarted my KDE/X system
I clicked k3b on the Multimedia submenu

It barked at me again about x3.4-1968.

So something isn't getting set up.

I have a feeling about 02locale being so specific.  Why 02.  Back in the
days when I had
a similar thing going on with SysV Init, we had such stuff in our rc.d
directory for run levels.
Most of those files got installed by particular owning packages.  Would
anyone who has
this file, and does not think they created it from

Re: [gentoo-user] K3b complains about my locale

2008-05-30 Thread Neil Bothwick
On Fri, 30 May 2008 16:25:33 -0700, Kevin O'Gorman wrote:

 I have a feeling about 02locale being so specific.  Why 02.

So that the locale environment variables are set before most of the
others.


-- 
Neil Bothwick

If Yoda so strong in force is, why words in right order he cannot put?


signature.asc
Description: PGP signature


[gentoo-user] K3b complains about my locale

2008-05-29 Thread Kevin O'Gorman
When I crank up K3b, it complains about my setup, with the message

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.

It is correct that this is not intentional (it does seem antique).  I have
configured .mybashrc to set my LANG to en_US, but nothing beyond that.
What distribution setup tools is it referring to, so that I can correct
this on gentoo?

++ kevin


Re: [gentoo-user] K3b complains about my locale

2008-05-29 Thread Mick
On Thursday 29 May 2008, Kevin O'Gorman wrote:
 When I crank up K3b, it complains about my setup, with the message

 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.

 It is correct that this is not intentional (it does seem antique).  I have
 configured .mybashrc to set my LANG to en_US, but nothing beyond that.
 What distribution setup tools is it referring to, so that I can correct
 this on gentoo?

What have you set up in your /etc/locale.gen ?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] K3b complains about my locale

2008-05-29 Thread Kevin O'Gorman
On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED] wrote:

 On Thursday 29 May 2008, Kevin O'Gorman wrote:
  When I crank up K3b, it complains about my setup, with the message
 
  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.
 
  It is correct that this is not intentional (it does seem antique).  I
 have
  configured .mybashrc to set my LANG to en_US, but nothing beyond that.
  What distribution setup tools is it referring to, so that I can correct
  this on gentoo?

 What have you set up in your /etc/locale.gen ?


I won't take credit for setting this up, because I don't think I did.  On
the other hand,
I've had occasion to internationalize a web page to dutch and polish, which
appear
in the list.  So I dunno where it came from.

But here's what's there:

# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run
`locale-gen`
# yourself instead of re-emerging glibc.

en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
es_MX ISO-8859-1
#fa_IR UTF-8
fr_FR ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
#it_IT ISO-8859-1
pl_PL ISO-8859-15



-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-05-29 Thread Mick
On Thursday 29 May 2008, Kevin O'Gorman wrote:
 On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED] wrote:
  On Thursday 29 May 2008, Kevin O'Gorman wrote:
   When I crank up K3b, it complains about my setup, with the message
  
   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.
  
   It is correct that this is not intentional (it does seem antique).  I
 
  have
 
   configured .mybashrc to set my LANG to en_US, but nothing beyond
   that. What distribution setup tools is it referring to, so that I can
   correct this on gentoo?
 
  What have you set up in your /etc/locale.gen ?

 I won't take credit for setting this up, because I don't think I did.  On
 the other hand,
 I've had occasion to internationalize a web page to dutch and polish, which
 appear
 in the list.  So I dunno where it came from.

 But here's what's there:

 # /etc/locale.gen: list all of the locales you want to have on your system
 #
 # The format of each line:
 # locale charmap
 #
 # Where locale is a locale located in /usr/share/i18n/locales/ and
 # where charmap is a charmap located in /usr/share/i18n/charmaps/.
 #
 # All blank lines and lines starting with # are ignored.
 #
 # For the default list of supported combinations, see the file:
 # /usr/share/i18n/SUPPORTED
 #
 # Whenever glibc is emerged, the locales listed here will be automatically
 # rebuilt for you.  After updating this file, you can simply run
 `locale-gen`
 # yourself instead of re-emerging glibc.

 en_US ISO-8859-1
 en_US.UTF-8 UTF-8
 #ja_JP.EUC-JP EUC-JP
 #ja_JP.UTF-8 UTF-8
 #ja_JP EUC-JP
 #en_HK ISO-8859-1
 #en_PH ISO-8859-1
 #de_DE ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 es_MX ISO-8859-1
 #fa_IR UTF-8
 fr_FR ISO-8859-1
 [EMAIL PROTECTED] ISO-8859-15
 #it_IT ISO-8859-1
 pl_PL ISO-8859-15

This looks fine.  If when you run $ locale you get a list with LANG=en_US but 
further down LC_ALL=   (blank), then set export LC_ALL=xxx in your .bashrc to 
whatever you want your locale set to.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] K3b complains about my locale

2008-05-29 Thread Kevin O'Gorman
On Thu, May 29, 2008 at 3:18 PM, Mick [EMAIL PROTECTED] wrote:

 On Thursday 29 May 2008, Kevin O'Gorman wrote:
  On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED] wrote:
   On Thursday 29 May 2008, Kevin O'Gorman wrote:
When I crank up K3b, it complains about my setup, with the message
   
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.
   
It is correct that this is not intentional (it does seem antique).  I
  
   have
  
configured .mybashrc to set my LANG to en_US, but nothing beyond
that. What distribution setup tools is it referring to, so that I
 can
correct this on gentoo?
  
   What have you set up in your /etc/locale.gen ?
 
  I won't take credit for setting this up, because I don't think I did.  On
  the other hand,
  I've had occasion to internationalize a web page to dutch and polish,
 which
  appear
  in the list.  So I dunno where it came from.
 
  But here's what's there:
 
  # /etc/locale.gen: list all of the locales you want to have on your
 system
  #
  # The format of each line:
  # locale charmap
  #
  # Where locale is a locale located in /usr/share/i18n/locales/ and
  # where charmap is a charmap located in /usr/share/i18n/charmaps/.
  #
  # All blank lines and lines starting with # are ignored.
  #
  # For the default list of supported combinations, see the file:
  # /usr/share/i18n/SUPPORTED
  #
  # Whenever glibc is emerged, the locales listed here will be
 automatically
  # rebuilt for you.  After updating this file, you can simply run
  `locale-gen`
  # yourself instead of re-emerging glibc.
 
  en_US ISO-8859-1
  en_US.UTF-8 UTF-8
  #ja_JP.EUC-JP EUC-JP
  #ja_JP.UTF-8 UTF-8
  #ja_JP EUC-JP
  #en_HK ISO-8859-1
  #en_PH ISO-8859-1
  #de_DE ISO-8859-1
  [EMAIL PROTECTED] ISO-8859-15
  es_MX ISO-8859-1
  #fa_IR UTF-8
  fr_FR ISO-8859-1
  [EMAIL PROTECTED] ISO-8859-15
  #it_IT ISO-8859-1
  pl_PL ISO-8859-15

 This looks fine.  If when you run $ locale you get a list with LANG=en_US
 but
 further down LC_ALL=   (blank), then set export LC_ALL=xxx in your .bashrc
 to
 whatever you want your locale set to.


Halfway there.  I did that, and now locale looks like

[EMAIL PROTECTED] ~ $ locale
LANG=en_US
LC_CTYPE=en_US
LC_NUMERIC=en_US
LC_TIME=en_US
LC_COLLATE=en_US
LC_MONETARY=en_US
LC_MESSAGES=en_US
LC_PAPER=en_US
LC_NAME=en_US
LC_ADDRESS=en_US
LC_TELEPHONE=en_US
LC_MEASUREMENT=en_US
LC_IDENTIFICATION=en_US
LC_ALL=en_US
[EMAIL PROTECTED] ~ $

However, when I start k3b from the KDE menus, it still complains.

On the other hand, if I start k3b from the shell that gives the locale
results above,
it starts clean.  So the issue seems to be that I need to inform KDE about
the
locale.

I did a fresh boot, and that did not help, so I wonder if .mybashrc is the
correct
place to do this.

-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] K3b complains about my locale

2008-05-29 Thread Neil Bothwick
On Thu, 29 May 2008 16:01:35 -0700, Kevin O'Gorman wrote:

 I did a fresh boot, and that did not help, so I wonder if .mybashrc is
 the correct place to do this.

Not really, because that only applies to bash. I have my locale settings
in /etc/env.d/02locale - run env-update after editing it.


-- 
Neil Bothwick

Life's a cache, and then you flush...


signature.asc
Description: PGP signature


Re: [gentoo-user] K3b complains about my locale

2008-05-29 Thread Daniel Pielmeier

Kevin O'Gorman schrieb:

On Thu, May 29, 2008 at 3:18 PM, Mick [EMAIL PROTECTED] wrote:


On Thursday 29 May 2008, Kevin O'Gorman wrote:

On Thu, May 29, 2008 at 2:29 PM, Mick [EMAIL PROTECTED] wrote:

On Thursday 29 May 2008, Kevin O'Gorman wrote:

When I crank up K3b, it complains about my setup, with the message

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.

It is correct that this is not intentional (it does seem antique).  I

have


configured .mybashrc to set my LANG to en_US, but nothing beyond
that. What distribution setup tools is it referring to, so that I

can

correct this on gentoo?

What have you set up in your /etc/locale.gen ?

I won't take credit for setting this up, because I don't think I did.  On
the other hand,
I've had occasion to internationalize a web page to dutch and polish,

which

appear
in the list.  So I dunno where it came from.

But here's what's there:

# /etc/locale.gen: list all of the locales you want to have on your

system

#
# The format of each line:
# locale charmap
#
# Where locale is a locale located in /usr/share/i18n/locales/ and
# where charmap is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be

automatically

# rebuilt for you.  After updating this file, you can simply run
`locale-gen`
# yourself instead of re-emerging glibc.

en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
es_MX ISO-8859-1
#fa_IR UTF-8
fr_FR ISO-8859-1
[EMAIL PROTECTED] ISO-8859-15
#it_IT ISO-8859-1
pl_PL ISO-8859-15

This looks fine.  If when you run $ locale you get a list with LANG=en_US
but
further down LC_ALL=   (blank), then set export LC_ALL=xxx in your .bashrc
to
whatever you want your locale set to.



Halfway there.  I did that, and now locale looks like

[EMAIL PROTECTED] ~ $ locale
LANG=en_US
LC_CTYPE=en_US
LC_NUMERIC=en_US
LC_TIME=en_US
LC_COLLATE=en_US
LC_MONETARY=en_US
LC_MESSAGES=en_US
LC_PAPER=en_US
LC_NAME=en_US
LC_ADDRESS=en_US
LC_TELEPHONE=en_US
LC_MEASUREMENT=en_US
LC_IDENTIFICATION=en_US
LC_ALL=en_US
[EMAIL PROTECTED] ~ $

However, when I start k3b from the KDE menus, it still complains.

On the other hand, if I start k3b from the shell that gives the locale
results above,
it starts clean.  So the issue seems to be that I need to inform KDE about
the
locale.

I did a fresh boot, and that did not help, so I wonder if .mybashrc is the
correct
place to do this.



try /etc/env.d/02locale

LANG=en_US
LC_ALL=en_US

For details take a look at the localisation guide. 
http://www.gentoo.org/doc/en/guide-localization.xml

--
gentoo-user@lists.gentoo.org mailing list