[H-GEN] UTF-8 vs ISO-8859-1

Troy Piggins troy at piggo.com
Fri Jun 23 02:28:51 EDT 2006


* Ted Percival <ted at midg3t.net> :
> Troy Piggins wrote:
> > * Ted Percival <ted at midg3t.net> :
> >> Troy Piggins wrote:
> >>> Further to this, I can find no way to change to ISO-8859-1 if I
> >>> wanted to.  Seems to be a common Dapper problem from my
> >>> google/ubuntuforums searches so far.
> >>
> >> Try `dpkg-reconfigure locales` (as root) and enable en_AU.ISO-8859-1.
> >> You should then be able to use it.
> > 
> > $ sudo dpkg-reconfigure locales
> > Generating locales...
> >   en_AU.UTF-8... up-to-date
> (snip many more locales)

Sorry about that.

> > Generation complete.
> > Current default timezone: 'Australia/Brisbane'.
> > Local time is now:      Fri Jun 23 14:20:50 EST 2006.
> > Universal Time is now:  Fri Jun 23 04:20:50 UTC 2006.
> > Run 'tzconfig' if you wish to change it.
> 
> Eh. Maybe the list of locales is a low-priority question. Try
> `dpkg-reconfigure -plow locales` 

Same result :-(

> or just add the following to
> /etc/locale.gen:
> 
> en_AU ISO-8859-1
> 
> and re-run `locale-gen`. That should make it possible to set
> LANG=en_AU.ISO-8859-1 without errors.

$ cat /etc/locale.gen
en_AU ISO-8859-1

$ sudo locale-gen
Generating locales...
  en_AU.UTF-8... up-to-date
[snip]
Generation complete.

Same result :-(

> >> If there's a problem changing it after that, check that it's not being
> >> forced in /etc/environment.
> > 
> > $ cat /etc/environment
> > PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
> > LANG="en_AU.UTF-8"
> > LANGUAGE="en_AU:en"
> 
> If you want to change the default locale for your whole system, rather
> than setting LANG in your shell's rc file so it only applies to that
> user account, read on.
> 
> I found this on my travels in /var/lib/dpkg/info/locales.config:
> # Prior to locales 2.3.6-5, variables were stored in /etc/environment
> 
> So you've probably either got an old(er) version of the locales package,

Dapper was only released in June this year.  Everything shiny and
new ;-)

> or you've got data leftover from an old version in /etc/environment. My
> /etc/environment file is completely commented-out, and `apt-cache policy
> locales` says version 2.3.6-15 is installed. Of course this is a Debian
> system so it's possible that Ubuntu handles locales differently, but I
> doubt it.

$ apt-cache policy locales
locales:
  Installed: 2.3.18
  Candidate: 2.3.18
[snip]

> I suggest commenting-out the LANG and LANGUAGE lines in /etc/environment
> if you want to change the default globally. If that works it might be
> reasonable to comment out the PATH and other things, though your mileage
> might vary.

Done but still not installing the bl**dy ISO-8859-1 stuff.  Sigh...

-- 
Troy Piggins
  ,-o   Ubuntu v6.06 (Dapper Drake): kernel 2.6.15-25-server, 
 o   )  postfix 2.2.10, procmail 3.22, mutt 1.5.11i,
  `-o   slrn 0.9.8.1/rt (score_color patch), vim 7.0




More information about the General mailing list