From b52735424651d08890eef5f3715c017c9010f1f9 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 7 Jan 2003 13:09:56 +0000 Subject: [PATCH] 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] --- unix/uxucs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }