Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

Enable streamable utf8 <--> utf16 codec

Open manojampalam opened this issue 8 years ago • 0 comments

A fundamental issue exists on the Unicode data transition boundary, when the data travels as a stream.

This may manifest as ssh remote sessions breaking down with rare and random failures/aborts. Ex. https://github.com/PowerShell/Win32-OpenSSH/issues/767 To decode a Utf8 stream to Utf16 and vice versa, we need a stateful parser that accounts for partial input. The current implementation (that is a simple wrapper on MultiByteToWideChar), simply fails when fed with partial input.

manojampalam avatar Jun 19 '17 17:06 manojampalam