1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

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.

[originally from svn r2490]
This commit is contained in:
Simon Tatham 2003-01-07 13:09:56 +00:00
parent db9edaf8c9
commit b527354246

View 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);
}
}