PDA

View Full Version : [ubuntu] ISO-8859-1 (non-utf) encoding



kevmitch
February 20th, 2009, 05:49 AM
It had a heck of a time Googling this one and the only thread I found on here was so out of date, that not only did it not offer a solution, but I was unable to post to it.

The question is how do you get ISO-8859-1 encodings to be generated by localegen?

On Debian

dpkg-reconfigure locales
Would give me a dialogue where I could select what I was after. The same thing on Ubuntu just regenerates all the english UTF-8 locales.

It turns out that if you want to add an other locale, the file is located quite unexpectedly at /var/lib/locales/supported.d/en. I say unexpectedly because a file like that should be in /etc in my opinion. In particular at /etc/locale.gen, but hey who am I?

I just added


en_US ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
en_GB ISO-8859-1
en_GB.ISO-8859-15 ISO-8859-15
en_CA ISO-8859-1

followed by running the above dpkg-reconfigure command and I was off to the backward compatibility races.