Mercurial > hg > sidinfo
changeset 356:811eb6c6695e
Add "support" for CP858 output in fallback converter as it is essentially the same as CP850.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 27 Jan 2020 02:32:59 +0200 |
parents | 9924d4518932 |
children | 199284ba94ea |
files | sidutil.c sidutil.h |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sidutil.c Sat Jan 25 13:06:02 2020 +0200 +++ b/sidutil.c Mon Jan 27 02:32:59 2020 +0200 @@ -209,10 +209,12 @@ break; case TH_LANG_CP850: + case TH_LANG_CP858: case TH_LANG_CP437: // Not 100% correct either, but close enough - convTable = (ctx->outLangID == TH_LANG_CP850) ? - sidutil_lang_iso88591_to_cp850 : sidutil_lang_iso88591_to_cp437; + convTab = (ctx->outLangID == TH_LANG_CP437) ? + sidutil_lang_iso88591_to_cp437 : + sidutil_lang_iso88591_to_cp850; if (*srcPtr < 0x7f) outByte = *srcPtr; @@ -314,6 +316,9 @@ if (strcmp(ctx->outLang, "cp850") == 0) ctx->outLangID = TH_LANG_CP850; else + if (strcmp(ctx->outLang, "cp858") == 0) + ctx->outLangID = TH_LANG_CP858; + else if (strcmp(ctx->outLang, "cp437") == 0) ctx->outLangID = TH_LANG_CP437; else