[mosh-users] UTF-8 Locale

Andrew Kraut akraut at gmail.com
Tue Apr 10 15:00:42 EDT 2012


There's something else going on here.
If I ssh into the server and type locale at a prompt everything comes back
"en_US.UTF-8".
If I do 'ssh servername locale' it all comes back "POSIX".
-Andy

On Tuesday, April 10, 2012, Daniele Sluijters wrote:

>  Hey,
>
> First look up the locales on your system:
> locale -a | grep "en_"  should give you a few entries, including
> en_US.UTF-8
>
> and / or change the line in /etc/locale.gem
> http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
>
> To affect / force a bash-session you can add this to your ~/.bashrc:
> export LC_CTYPE=en_US.UTF-8
> and if you want to affect the system language as well:
> export LANG=en_US.UTF-8
>
> (this all assumes you want en_US.UTF-8 as your locale, I use en_GB.UTF-8
> for example because of the 's' versus 'z' thing)
>
> --
> Daniele Sluijters
>
> On Tuesday, April 10, 2012 at 20:16 , Andrew Kraut wrote:
>
> MacMini$ locale
> LANG="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_CTYPE="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_ALL=
> MacMini$ ssh servername locale
> LANG=
> LC_CTYPE="POSIX"
> 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=
>
> Looks like I need to make Gentoo set it's locale properly?
> -Andy
>
> On Tuesday, April 10, 2012, Daniele Sluijters wrote:
>
>  Hey,
>
> Can you post the outputs of the `locale` command on both your machine and
> the remote machine you're connecting too (as the user you're connecting as).
>
> You might need to install a packages such as 'locales' on Debian, OS X
> comes equipped with it.
>
> --
> Daniele Sluijters
>
> On Tuesday, April 10, 2012 at 19:10 , Andrew Kraut wrote:
>
> When I do 'mosh servername' to connect to my gentoo server I see:
> $ mosh l.opie.at
> mosh requires a UTF-8 locale.
> Connection to servername closed.
> /usr/bin/mosh: Did not find mosh server startup message.
> $
>
> But if I manually start mosh
>
>

-- 
Andrew Kraut
Cell: +1 (309) 807-5858
K9OPQ

I strongly dislike typos. If I sent one, go here to cash in:
http://bit.ly/aHeKU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mosh-users/attachments/20120410/addfaac0/attachment-0001.htm


More information about the mosh-users mailing list