ISO 8859-1 on Ubuntu 6.0.6
jvpgomes
ulist at gs1.ubuntuforums.org
Sun Jun 11 18:46:35 UTC 2006
Hi!
> I don't understand why GNOME still uses UTF-8 even if the locales
are
> set to ISO-8859-1.
And if the locale was so set before you started GNOME.
As another test, write a script with nothing but
"locale >/tmp/locale.$$.locale" in it and make a GNOME menu item for
it. Run the script from the menu and see what's in the tmp file. If
it has UTF stuff in it, GNOME is either not seeing your changed locale
(due to timing issues between GNOME start and locale setting) or it
is just ignoring it (maybe it's written to only use UTF-8).
Exactly! You're right!
I made the script, I run it from the GNOME and the result it was:
joao at pc-linux:~$ more /tmp/locale.6215.locale
LANG=pt_PT.UTF-8
LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
LC_CTYPE="pt_PT.UTF-8"
LC_NUMERIC="pt_PT.UTF-8"
LC_TIME="pt_PT.UTF-8"
LC_COLLATE="pt_PT.UTF-8"
LC_MONETARY="pt_PT.UTF-8"
LC_MESSAGES="pt_PT.UTF-8"
LC_PAPER="pt_PT.UTF-8"
LC_NAME="pt_PT.UTF-8"
LC_ADDRESS="pt_PT.UTF-8"
LC_TELEPHONE="pt_PT.UTF-8"
LC_MEASUREMENT="pt_PT.UTF-8"
LC_IDENTIFICATION="pt_PT.UTF-8"
LC_ALL=
joao at pc-linux:~$
But... I already knew that. Remember what I said:
"Every time I start a program using the GNOME menu, that program will
have the UTF-8 codification by default.
If I use GNOME console to start the program, that program will run
using ISO-8859-1 codification."
But I would like to understand why this happens.
> It's a shame because Ubuntu is my favourite distro, but since I
upgrade
> to Dapper, I've been experiencing some problems... locales, printer,
and
> some other small questions... now this is the only problem that I
could
> solved yet...
I'll guess that you shouldn't be trying to set the OS (and GNOME)
locale to 8859, but trying to configure a UTF-8 locale that does what
you want, usually. There should be a German one. If a particular app
needs a 8889 locale for some strange reason, make the app a wrapper
script to change the locale for that script's process and
sub-processes (eg, the app) only.
I understand you and I agree with you. The problem is that I work in
team with other people, but they use Windows. We work in the same
files, so I prefer to have my system working with ISO-8859-1.
I don't like that some things in my system are like... "hidden"... I
like when I can change what I want in the terminal line... like
locales...
Thank you for the help!!!
--
jvpgomes
More information about the ubuntu-users
mailing list