range of Unicode characters. Not entirely sure I understand this one
but I trust that RDB knows what he's talking about with Unicode.
git-svn-id: svn://svn.tartarus.org/sgt/putty@1246
cda61777-01e9-0310-a592-
d414129be87e
/* UTF is a simple algorithm */
for (p = linebuffer, i = 0; i < len; i++) {
wchar_t ch = widebuf[i];
/* UTF is a simple algorithm */
for (p = linebuffer, i = 0; i < len; i++) {
wchar_t ch = widebuf[i];
+ /* Windows wchar_t is UTF-16 */
+ if ((ch&0xF800) == 0xD800) ch = '.';
+
if (ch < 0x80) {
*p++ = (char) (ch);
} else if (ch < 0x800) {
if (ch < 0x80) {
*p++ = (char) (ch);
} else if (ch < 0x800) {