Skip to content
Snippets Groups Projects
Commit 7bfc6b5c authored by rswindell's avatar rswindell
Browse files

Map both Unicode BLACK SQUARE and HALFWIDTH BLACK SQUARE to CP437 0xFE when

translating from Unicode to CP437.
Use the UNICODE_HOUSE macro instead of the codepoint hex-value.
parent 014d84ed
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ enum unicode_codepoint cp437_unicode_tbl[] =
0,
0,
0,
/* 0x7F (DEL) */ UNICODE_TERM_CTRL_CHAR_CODE(0x2302),
/* 0x7F (DEL) */ UNICODE_TERM_CTRL_CHAR_CODE(UNICODE_HOUSE),
/* 0x80 */ UNICODE_LATIN_CAPITAL_LETTER_C_WITH_CEDILLA,
/* 0x81 */ UNICODE_LATIN_SMALL_LETTER_U_WITH_DIAERESIS,
/* 0x82 */ UNICODE_LATIN_SMALL_LETTER_E_WITH_ACUTE,
......@@ -496,6 +496,9 @@ char unicode_to_cp437(enum unicode_codepoint codepoint)
case UNICODE_DOUBLE_LOW_9_QUOTATION_MARK:
case UNICODE_DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK: return '"';
case UNICODE_DAGGER: return CP437_BOX_DRAWINGS_VERTICAL_AND_HORIZONTAL;
case UNICODE_BLACK_SQUARE:
case UNICODE_HALFWIDTH_BLACK_SQUARE: return CP437_HALFWIDTH_BLACK_SQUARE;
case UNICODE_HORIZONTAL_BAR:
case UNICODE_OVERLINE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment