From: Simon Tatham Date: Tue, 7 Jan 2003 13:09:56 +0000 (+0000) Subject: Ahem. Now pterm actually uses wc_to_mb in a situation where it needs X-Git-Tag: r8855-g4f798d~1823 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=8790cb590a57e958fab6e35fa886aa9f6dce451f;p=PuTTY_svn.git Ahem. Now pterm actually uses wc_to_mb in a situation where it needs to pass in a default character, it would help if wc_to_mb actually _honoured_ the default-character parameter. git-svn-id: http://svn.tartarus.org/sgt/putty@2490 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxucs.c b/unix/uxucs.c index 9fb7673a..01aae629 100644 --- a/unix/uxucs.c +++ b/unix/uxucs.c @@ -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); } }