]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Ahem. Now pterm actually uses wc_to_mb in a situation where it needs
authorSimon Tatham <anakin@pobox.com>
Tue, 7 Jan 2003 13:09:56 +0000 (13:09 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 7 Jan 2003 13:09:56 +0000 (13:09 +0000)
to pass in a default character, it would help if wc_to_mb actually
_honoured_ the default-character parameter.

[originally from svn r2490]

unix/uxucs.c

index 9fb7673ad1d898b6285159b881b5aa084313ae4b..01aae6293650a7de3fea402d1628caf542dc2a2d 100644 (file)
@@ -97,7 +97,7 @@ int wc_to_mb(int codepage, int flags, wchar_t *wcstr, int wclen,
        return n;
     } else {
        return charset_from_unicode(&wcstr, &wclen, mbstr, mblen, codepage,
-                                   NULL, NULL, 0);
+                                   NULL, defchr?defchr:NULL, defchr?1:0);
     }
 }