hurryUpHarry
April 28th, 2012, 08:46 PM
hi all
I'm running Ubuntu 11.04 in a VirtualBox with xfce. I cannot seem to set the locale for utf8. This started because I wanted to checkout zsh, which has more options for prompts etc. As you can see from the outputs below, it's looking pretty crummy so far because of the locale settings. Here the various outputs/file contents I have:
��� ~ locale
LANG=
LANGUAGE=
LC_CTYPE=
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
��� ~ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANG=en_CA.utf8
LANGUAGE=en_CA:en
LC_ALL=en_CA.utf8
��� ~ cat /etc/default/locale
LANG="en_CA.utf8"
LANGUAGE="en_CA:en"
LC_ALL="en_CA.utf8"
��� ~ LANG=en_CA.UTF-8
��� ~ locale
LANG=
LANGUAGE=
LC_CTYPE=
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
I have tried 'sudo dpkg-reconfigure locales', but it did not make a difference. Also, I have rebooted after making these changes.
I also have:
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LC_ALL=en_CA.UTF-8
in my .zshrc file. I am also not sure if the settings should have quotes around them or not. Also, I do have 'en_CA.utf8' in the list when I do 'locale -a'
Anyone know what I'm doing wrong? Sorry if it's something obvious and I honestly have tried to find this particular problem in forums but no luck.
Thanks.
I'm running Ubuntu 11.04 in a VirtualBox with xfce. I cannot seem to set the locale for utf8. This started because I wanted to checkout zsh, which has more options for prompts etc. As you can see from the outputs below, it's looking pretty crummy so far because of the locale settings. Here the various outputs/file contents I have:
��� ~ locale
LANG=
LANGUAGE=
LC_CTYPE=
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
��� ~ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANG=en_CA.utf8
LANGUAGE=en_CA:en
LC_ALL=en_CA.utf8
��� ~ cat /etc/default/locale
LANG="en_CA.utf8"
LANGUAGE="en_CA:en"
LC_ALL="en_CA.utf8"
��� ~ LANG=en_CA.UTF-8
��� ~ locale
LANG=
LANGUAGE=
LC_CTYPE=
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
I have tried 'sudo dpkg-reconfigure locales', but it did not make a difference. Also, I have rebooted after making these changes.
I also have:
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LC_ALL=en_CA.UTF-8
in my .zshrc file. I am also not sure if the settings should have quotes around them or not. Also, I do have 'en_CA.utf8' in the list when I do 'locale -a'
Anyone know what I'm doing wrong? Sorry if it's something obvious and I honestly have tried to find this particular problem in forums but no luck.
Thanks.