X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c2524e4ee3ee57fd5b3b6d44a2026ee742573c3d..8772ac697da9af645ce4ce9d73b6406f7d126f49:/unix/uxucs.c diff --git a/unix/uxucs.c b/unix/uxucs.c index 01aae629..5b211498 100644 --- a/unix/uxucs.c +++ b/unix/uxucs.c @@ -104,7 +104,7 @@ int wc_to_mb(int codepage, int flags, wchar_t *wcstr, int wclen, /* * Return value is TRUE if pterm is to run in direct-to-font mode. */ -int init_ucs(int font_charset) +int init_ucs(char *linecharset, int font_charset) { int i, ret = 0; @@ -120,9 +120,9 @@ int init_ucs(int font_charset) * line_codepage should be decoded from the specification in * cfg. */ - line_codepage = charset_from_mimeenc(cfg.line_codepage); + line_codepage = charset_from_mimeenc(linecharset); if (line_codepage == CS_NONE) - line_codepage = charset_from_xenc(cfg.line_codepage); + line_codepage = charset_from_xenc(linecharset); /* * If line_codepage is _still_ CS_NONE, we assume we're using