Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b87338ca authored by rswindell's avatar rswindell

Define and use Unicode code points 0x2015 through 0x2021 in unicode_to_cp437()

for some obvious (but missing) mappings.
parent fb26e960
......@@ -484,6 +484,20 @@ char unicode_to_cp437(enum unicode_codepoint codepoint)
case UNICODE_SET_MINUS: return '\\';
case UNICODE_ASTERISK_OPERATOR: return '*';
case UNICODE_DOUBLE_VERTICAL_LINE: return CP437_BOX_DRAWINGS_DOUBLE_VERTICAL;
case UNICODE_DOUBLE_LOW_LINE: return '=';
case UNICODE_LEFT_SINGLE_QUOTATION_MARK:
case UNICODE_RIGHT_SINGLE_QUOTATION_MARK:
case UNICODE_SINGLE_HIGH_REVERSED_9_QUOTATION_MARK: return '\'';
case UNICODE_SINGLE_LOW_9_QUOTATION_MARK: return ',';
case UNICODE_LEFT_DOUBLE_QUOTATION_MARK:
case UNICODE_RIGHT_DOUBLE_QUOTATION_MARK:
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_HORIZONTAL_BAR:
case UNICODE_OVERLINE:
case 0x2500: // Box Drawings Light Horizontal
case 0x2501: // Box Drawings Heavy Horizontal
......
......@@ -251,6 +251,19 @@ enum unicode_codepoint {
UNICODE_ZERO_WIDTH_NON_JOINER = 0x200C,
UNICODE_ZERO_WIDTH_JOINER = 0x200D,
UNICODE_EM_DASH = 0x2014,
UNICODE_HORIZONTAL_BAR = 0x2015,
UNICODE_DOUBLE_VERTICAL_LINE = 0x2016,
UNICODE_DOUBLE_LOW_LINE = 0x2017,
UNICODE_LEFT_SINGLE_QUOTATION_MARK = 0x2018,
UNICODE_RIGHT_SINGLE_QUOTATION_MARK = 0x2019,
UNICODE_SINGLE_LOW_9_QUOTATION_MARK = 0x201A,
UNICODE_SINGLE_HIGH_REVERSED_9_QUOTATION_MARK = 0x201B,
UNICODE_LEFT_DOUBLE_QUOTATION_MARK = 0x201C,
UNICODE_RIGHT_DOUBLE_QUOTATION_MARK = 0x201D,
UNICODE_DOUBLE_LOW_9_QUOTATION_MARK = 0x201E,
UNICODE_DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK = 0x201F,
UNICODE_DAGGER = 0x2020,
UNICODE_DOUBLE_DAGGER = 0x2021,
UNICODE_BULLET = 0x2022,
UNICODE_HORIZONTAL_ELLIPSIS = 0x2026,
UNICODE_LINE_SEPARATOR = 0x2028,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment