I'm having some trouble getting some UTF-8 characters to show when using mosh 
to connect to a FreeBSD server.  I think this is best explained with the 
following output.

First, to demonstrate that UTF-8 works fine locally (echos: Mac OS X) and 
remotely (satura: FreeBSD):


   lhunath@echos ~ $ 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=
   lhunath@echos ~ $ printf '\U1f37b\n'
   🍻
   lhunath@echos ~ $ ssh satura.lyndir.com
   Last login: Wed Feb 15 11:37:43 2017 from 104-247-227-52.cpe.teksavvy.com
   lhunath@satura ~ $ printf '\U1f37b\n'
   🍻
   lhunath@satura ~ $ locale
   LANG=en_US.UTF-8
   LC_CTYPE="en_US.UTF-8"
   LC_COLLATE=C
   LC_TIME="en_US.UTF-8"
   LC_NUMERIC="en_US.UTF-8"
   LC_MONETARY="en_US.UTF-8"
   LC_MESSAGES="en_US.UTF-8"
   LC_ALL=
   lhunath@satura ~ $ logout
   Connection to satura.lyndir.com closed.
   lhunath@echos ~ $


Next, to demonstrate the issue with mosh:


   lhunath@echos ~ $ mosh satura.lyndir.com

   lhunath@satura ~ $ printf '\U1f37b\n'

   lhunath@satura ~ $ locale
   LANG=en_US.UTF-8
   LC_CTYPE="en_US.UTF-8"
   LC_COLLATE=C
   LC_TIME="en_US.UTF-8"
   LC_NUMERIC="en_US.UTF-8"
   LC_MONETARY="en_US.UTF-8"
   LC_MESSAGES="en_US.UTF-8"
   LC_ALL=
   lhunath@satura ~ $ ps aux | grep mosh
   lhunath     77127   0.0  0.1   50612   8780  4- S+   11:43AM      0:00.01 
mosh-server new -c 8 -s -l LANG=en_US.UTF-8
   lhunath     77314   0.0  0.0   18848   2608  5  S+   11:43AM      0:00.00 
grep -I --color=auto mosh


As you can see, the UTF-8 glyph for U1f37b is not being rendered while inside 
mosh.  The same issue happens when running as:
LANG=en_US.UTF-8 LC_ALL=$LANG mosh -n --no-init satura.lyndir.com

Is this expected to work, and if so, how can I diagnose the issue?

Thanks in advance,
Maarten.
_______________________________________________
mosh-users mailing list
mosh-users@mit.edu
http://mailman.mit.edu/mailman/listinfo/mosh-users

Reply via email to