[mosh-users] UTF-8 on FreeBSD
Maarten Billemont
lhunath at lyndir.com
Wed Feb 15 11:49:30 EST 2017
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 at 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 at echos ~ $ printf '\U1f37b\n'
🍻
lhunath at echos ~ $ ssh satura.lyndir.com
Last login: Wed Feb 15 11:37:43 2017 from 104-247-227-52.cpe.teksavvy.com
lhunath at satura ~ $ printf '\U1f37b\n'
🍻
lhunath at 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 at satura ~ $ logout
Connection to satura.lyndir.com closed.
lhunath at echos ~ $
Next, to demonstrate the issue with mosh:
lhunath at echos ~ $ mosh satura.lyndir.com
lhunath at satura ~ $ printf '\U1f37b\n'
lhunath at 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 at 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.
More information about the mosh-users
mailing list