-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wide characters not displaying on OS X and Windows #20
Comments
Interesting. Can you also include what version of Chrome and Mac OS you're running? I'll see if I can get my hands on a Mac and reproduce this. Also, is this problem new with v0.2.0.20? That was released last last night. |
I'm new to this extension as of 0.2.0.20, so I don't have a point of comparison currently. That's the version I get from the chrome store. Currently running:
|
Restarted Chrome and it updated itself to 32.0.1700.107 - same issue, however. |
I am able to reproduce this on Max OS 10.8.5 using Chrome 32.0.1700.107. It seems only to happen when there are Unicode characters on the screen, such as when running tmux with a divided window, or apparently even bringing up a man page. I suspect curses-based apps are also using Unicode characters to draw borders. @LeftyBC, can you try running one of these programs while disabling Unicode support and see if they display "correctly" for you (some characters will be replaced with ugly versions, perhaps). E.g,:
(Salt to taste based on your locale.) For my reference: Secure Shell, which also uses hterm, doesn't seem to have this problem. But it is probably using glibc and locale data generated by locale-gen or equiv., whereas I'm using newlib and the built-in en_US.UTF-8. Nonetheless, I should check what version of hterm I'm using. |
Confirmed, both tmux and man locale display properly when setting en_US as the locale. Tmux appears to use "qqqqq" as the line-drawing characters as expected. I do have a unicode character in my PS1 on that machine - so it'd look something like:
|
I have learned that I'm using the wrong (read: old) source for hterm. I should try the new location (I understand it is on GitHub somewhere), and see if that resolves the issue. |
I tried updating hterm to the latest version (in SHA 3382cbe), but the problem persists. Investigation continues. |
Any testing you need me to do, let me know - I've got a couple of Macs, a couple of Windows boxes, and a linux machine or two kicking around. |
@LeftyBC Cool, thanks. See if you can reproduce this running Mosh for Chrome on Windows. Also confirm that if you run the upstream "mosh" program in Terminal on the Mac that you cannot reproduce this (I am borrowing a Mac to test, and don't want to install any new software on it). |
Interesting that Mosh for Chrome is broken for you on Windows. I can't repo this on Linux or Chrome OS; can you repo on Linux, per chance? Also, compare the output of the "locale" command when connecting with the upstream Mosh vs. connecting with Mosh for Chrome, and make sure that they're both using UTF-8. |
OK, looks like this is a wider issue than just Mac OS. Updated the description. |
Fixed in SHA e1163cf. Whew! This one took some sleuthing. There's a bug in NaCl: The $LANG variable is missing from the environment on Mac (and probably Windows, but unverified). That upsets ncurses. I'll bring this up with the NaCl folks; the environment really must be the same across platforms for portability. |
Thanks for pushing through and getting this one squashed! |
On my OS X Mavericks machine, connecting to a remote machine via Mosh extension (0.2.0.20, precompiled version from the Chrome App Store) produces corrupted output.
Attaching to tmux produces a blank screen, and curses-based apps fail to draw correctly on the screen. I initially thought it was my relatively fancy bash PS1 prompt, but setting PS1 to
\u@\h \w \$
still produced issues.Attached is a screenshot of running
man set
on the remote machine via Mosh.Connecting to the same machine using the same version of the extension from the app store on a Linux machine works flawlessly, so I believe this may be limited to OS X.
![screen shot 2014-02-03 at 14 37 08](https://camo.githubusercontent.com/1e4837c5007a48193baab4c64e1d5aa8417ff05c043d4f8d9f38f80ec5d10dc3/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313330343736362f323037313039382f33303534356665652d386432342d313165332d383765392d6562346236613031383334642e706e67)
The text was updated successfully, but these errors were encountered: