gee, thanks!
gee, thanks!
I found I needed to add
The quotation marks are absolutely necessary. I inserted these in my .tcshrc source file and now everything is fine. Not sure if it is dependent on CSH/TCSH.Code:setenv LANG "en_CA" setenv LANGUAGE "en_CA.UTF8"
Hope this helps
linux, linux, linux
Worked for me thanks!
Thanks ejmadar, solution still working on a Virtual Private Server running 12.04 Server.
Before:Code:root@vps:/# locale-gen en_GB.UTF-8 Generating locales... en_GB.UTF-8... done Generation complete.
After:Code:root@vps:/# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_GB.utf8 LANGUAGE= LC_CTYPE="en_GB.utf8" LC_NUMERIC="en_GB.utf8" LC_TIME="en_GB.utf8" LC_COLLATE="en_GB.utf8" LC_MONETARY="en_GB.utf8" LC_MESSAGES="en_GB.utf8" LC_PAPER="en_GB.utf8" LC_NAME="en_GB.utf8" LC_ADDRESS="en_GB.utf8" LC_TELEPHONE="en_GB.utf8" LC_MEASUREMENT="en_GB.utf8" LC_IDENTIFICATION="en_GB.utf8" LC_ALL=
Code:root@vps:/# locale LANG=en_GB.utf8 LANGUAGE= LC_CTYPE="en_GB.utf8" LC_NUMERIC="en_GB.utf8" LC_TIME="en_GB.utf8" LC_COLLATE="en_GB.utf8" LC_MONETARY="en_GB.utf8" LC_MESSAGES="en_GB.utf8" LC_PAPER="en_GB.utf8" LC_NAME="en_GB.utf8" LC_ADDRESS="en_GB.utf8" LC_TELEPHONE="en_GB.utf8" LC_MEASUREMENT="en_GB.utf8" LC_IDENTIFICATION="en_GB.utf8" LC_ALL=
Worked great! Thank you!!
Sweet, fixed for me!
Mobo: ECS-K8M890-M; 2GB DDR2; AMD Athlon64X2 AM2 2.2Ghz;
OS: Leo, W7, Jaunty; AV: AC97; Sapphire X1650 256MB DDR2
HD: WD40GB IDE (OSX) & Seagate160GB SATA (Win/Linux)
WLAN: Linksys WUSB54Gv4 (rt2x00) & Asus USB-N11 (???)
Thank's you. For russuan
Code:# sudo locale-gen ru_RU ru_RU.UTF-8 ru_RU ru_RU.UTF-8
This was in the right direction, but unfortunately, didn't fix it for me. What did, however, was this:
http://bookmarks.honewatson.com/2009...ttings-ubuntu/
EDIT:
Further investigation shows the fix in my case was even easier than I thought, before:
So I set LC_TYPE and LC_ALL manually like so:Code:$ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
The result is a fix:Code:$ export LC_TYPE="en_US.UTF-8" $ export LC_ALL="en_US.UTF-8"
SECOND EDIT:Code:$ locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8
.. Unfortunately, the above 'solution' only worked for that terminal session. As soon as I reconnected, locale errors rained down on me again..
Delving furhter into this issue, I came across:
http://stackoverflow.com/questions/2...ning-from-perl
What permanently fixed it for me is commenting out the following directive in my /etc/ssh/sshd_config (on the remote host):
Having eliminated that line, and reloading my ssh daemon, this issue was resolved.Code:AcceptEnv LANG LC_*
Last edited by CritiKaster; November 16th, 2013 at 08:32 PM.
Bookmarks