Locale configuration post-Intrepid

Mar 01, 2010 18:43


Originally published at The Pædantic Programmer. Please leave any comments there.

I was reminded this morning after a bit of chatter on #debian-cli that my previous write-up on setting one’s locale on Ubuntu is out-of-date. Instead of running dpkg-reconfigure locales and selecting your locale, the new incantation is as follows:
Magic

$ sudo locale-gen en_US.UTF-8 Environment Variables

You’ll also want to set some environment variables. Put something like the following in your ~/.bashrc:

LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_ALL=en_US.UTF-8 export LANG LANGUAGE LC_CTYPE LC_MESSAGES LC_ALL
You would of course replace en_US.UTF-8 with whichever locale you want to generate.

irc, cli, washington state ubuntu loco, debian, ubuntu

Previous post Next post
Up