Created attachment 2723 [details] patch adding IUTF8 flag, if available After report in our bugzilla [1] about utf8 support in remote terminals I dived a bit into this topic and found that openssh doesn't count with termios flag IUTF8 for handling utf8 characters interactively. This flag exists for some time and is available in Linux kernel since version 2.6. Really nice article [2] describes this issue (last paragraph). Minimal test case is also described in original bugzilla, but I will copy it also here: 1. ssh to machine with openssh 2. $ cat > test 3. Use this as a input for cat command: Á<press backspace once><press CTRL+D><press CTRL+D> 4. $ hexdump test Actual results: 0000000 00c3 0000001 Expected results: The file "test" should be empty. Solution is quite simple. Adding this this mode into ttymodes.h solves this issue. Problematic is that this changes things on both sides to apply. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1270248 [2] https://www.cl.cam.ac.uk/~mgk25/unicode.html#mod
Even more problematic is that the value you are using is not defined in RFC4254 section 8.
Yeah, I see. Now I found some discussion years ago on IETF and there are much more about this topic, But having a track about this also in this bugzilla will not hurt (I hope I didn't miss any dupplicate). http://www.ietf.org/mail-archive/web/secsh/current/msg00658.html Yes, this would require addition to protocol specification. Do you know if is some revision planned in close future? Or is there something I can help with?
Created attachment 2736 [details] Add terminal mode, document in PROTOCOL If we do this (and I don't see why we shouldn't), we should mention the assignment in the PROTOCOL file.
Comment on attachment 2736 [details] Add terminal mode, document in PROTOCOL I think we should at least attempt to get this assigned via the proper process.
Simon Tatham has submitted an internet-draft for this: http://www.ietf.org/id/draft-sgtatham-secsh-iutf8-00.txt and it's currently implemented in the development branches of OpenSSH and PuTTY.
Close all resolved bugs after 7.3p1 release