# HG changeset patch # User Matti Hamalainen # Date 1580085179 -7200 # Node ID 811eb6c6695e44062fefe35a7d6e2b01b7b7f4e8 # Parent 9924d45189320ca653f084ca65cf0c23c476fea0 Add "support" for CP858 output in fallback converter as it is essentially the same as CP850. diff -r 9924d4518932 -r 811eb6c6695e sidutil.c --- 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 diff -r 9924d4518932 -r 811eb6c6695e sidutil.h --- a/sidutil.h Sat Jan 25 13:06:02 2020 +0200 +++ b/sidutil.h Mon Jan 27 02:32:59 2020 +0200 @@ -37,6 +37,7 @@ TH_LANG_UTF8, TH_LANG_ISO88591, TH_LANG_CP850, + TH_LANG_CP858, TH_LANG_CP437, };