[mosh-users] UTF-8 Locale
Daniele Sluijters
daniele.sluijters at gmail.com
Tue Apr 10 14:23:15 EDT 2012
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 (http://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-server and mosh-client at each end, everything works fine. Which end is the UTF-8 message coming from?
> > > -Andy
> > >
> > >
> > >
> > > --
> > > Andrew Kraut
> > > Cell: +1 (309) 807-5858 (tel:%2B1%20%28309%29%20807-5858)
> > > K9OPQ
> > >
> > > I strongly dislike typos. If I sent one, go here to cash in: http://bit.ly/aHeKU4
> > > _______________________________________________
> > > mosh-users mailing list
> > > mosh-users at mit.edu (javascript:_e({}, 'cvml', 'mosh-users at mit.edu');)
> > > http://mailman.mit.edu/mailman/listinfo/mosh-users
> > >
> > >
> > >
> >
> >
>
>
> --
> 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/1547e5d7/attachment.htm
More information about the mosh-users
mailing list