public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Miernik <public@public.miernik.name>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: Warning: locale not supported by Xlib, locale set to C
Date: Sun, 20 Jul 2008 11:15:06 +0200	[thread overview]
Message-ID: <20080720091506.24A0.0.NOFFLE@turbacz.local> (raw)
In-Reply-To: 200807192259.29027.dirk.heinrichs@online.de

Dirk Heinrichs <dirk.heinrichs@online.de> wrote:
>> miernik@przehyba ~ $ locale
>> LANG=en_DK.UTF-8
>> miernik@przehyba ~ $ locale -a
>> en_DK.utf8
> 
> And you don't see the difference?

But...

przehyba ~ # cat /usr/share/i18n/SUPPORTED | grep en | grep DK
en_DK.UTF-8 UTF-8
en_DK ISO-8859-1
przehyba ~ #

So why 'locale -a' tells me that the available locale has "utf8" at the
end, while the file in /usr/share/i18n/ tells me its capital leters
"UTF-8"? And all documentation I can remember tells me to use ".UTF-8",
I've never in my life seen ".utf8" before, I use locales with ".UTF-8"
ending on Debian since ages, why here is this strange lowercase "utf8"
in one place, and how did it happen to get there?

http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6
tells to use capital "UTF-8"

http://www.gentoo.org/doc/en/utf-8.xml
shows that 'locale -a' should output capital "UTF-8"

However I still don't know how to solve the problem, I changed the text
in /etc/env.d/02locale to "en_DK.utf8", then run
env-update && source /etc/profile
and rebooted the machine after that just to be sure, but that didn't fix
the problem - UTF-8 files don't work when 'cat', and starting an xterm
still shows "Warning: locale not supported by Xlib, locale set to C".
Only now "locale" command shows the lowercase version.

I did read the above URL's, and
http://www.gentoo.org/doc/en/guide-localization.xml
and I am out of ideas. What a mess... and I didn't ever before anywhere
enter ".utf8" ending in the locale while installing this system, nor in
my life, so it's not me who messed it up! I did how all the manuals
showed - uppercase .UTF-8

Is there any hope for me, or should I reinstall Gentoo from scratch,
to a blank disk, and pray that my locales will work after that? However
I'm sceptical that will produce any different result than I have,
because I'll probably do everything exactly as I did now.

-- 
Miernik
http://miernik.name/




  reply	other threads:[~2008-07-20  9:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19 18:37 [gentoo-user] Warning: locale not supported by Xlib, locale set to C Miernik
2008-07-19 20:59 ` Dirk Heinrichs
2008-07-20  9:15   ` Miernik [this message]
2008-07-20 14:43     ` [gentoo-user] " Dirk Heinrichs
2008-07-21  6:02       ` Miernik
2008-07-21  8:11         ` Jan Seeger
2008-07-21 10:46           ` Miernik

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=20080720091506.24A0.0.NOFFLE@turbacz.local \
    --to=public@public.miernik.name \
    --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