From 69ffc8e3437c15ea4dbf61156c07656d09603ed5 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 18 Mar 2020 20:14:27 -0600 Subject: [PATCH] regen/unicode_constants.pl: Add a couple constants which will be needed in a future commit --- regen/unicode_constants.pl | 2 ++ unicode_constants.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/regen/unicode_constants.pl b/regen/unicode_constants.pl index e5e015f..7851e87 100644 --- a/regen/unicode_constants.pl +++ b/regen/unicode_constants.pl @@ -268,7 +268,9 @@ LF native VT native ESC native U+00DF native +U+00DF string U+00E5 native U+00C5 native U+00FF native U+00B5 native +U+00B5 string diff --git a/unicode_constants.h b/unicode_constants.h index e434570..332307e 100644 --- a/unicode_constants.h +++ b/unicode_constants.h @@ -82,10 +82,12 @@ bytes. # define VT_NATIVE 0x0B /* U+000B */ # define ESC_NATIVE 0x1B /* U+001B */ # define LATIN_SMALL_LETTER_SHARP_S_NATIVE 0xDF /* U+00DF */ +# define LATIN_SMALL_LETTER_SHARP_S_UTF8 "\xC3\x9F" /* U+00DF */ # define LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_NATIVE 0xE5 /* U+00E5 */ # define LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_NATIVE 0xC5 /* U+00C5 */ # define LATIN_SMALL_LETTER_Y_WITH_DIAERESIS_NATIVE 0xFF /* U+00FF */ # define MICRO_SIGN_NATIVE 0xB5 /* U+00B5 */ +# define MICRO_SIGN_UTF8 "\xC2\xB5" /* U+00B5 */ # define MAX_PRINT_A_FOR_USE_ONLY_BY_REGCOMP_DOT_C 0x7E /* The max code point that isPRINT_A */ #endif /* ASCII/Latin1 */ @@ -125,10 +127,12 @@ bytes. # define VT_NATIVE 0x0B /* U+000B */ # define ESC_NATIVE 0x27 /* U+001B */ # define LATIN_SMALL_LETTER_SHARP_S_NATIVE 0x59 /* U+00DF */ +# define LATIN_SMALL_LETTER_SHARP_S_UTF8 "\x8A\x73" /* U+00DF */ # define LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_NATIVE 0x47 /* U+00E5 */ # define LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_NATIVE 0x67 /* U+00C5 */ # define LATIN_SMALL_LETTER_Y_WITH_DIAERESIS_NATIVE 0xDF /* U+00FF */ # define MICRO_SIGN_NATIVE 0xA0 /* U+00B5 */ +# define MICRO_SIGN_UTF8 "\x80\x64" /* U+00B5 */ # define MAX_PRINT_A_FOR_USE_ONLY_BY_REGCOMP_DOT_C 0xF9 /* The max code point that isPRINT_A */ #endif /* EBCDIC 1047 */ @@ -168,10 +172,12 @@ bytes. # define VT_NATIVE 0x0B /* U+000B */ # define ESC_NATIVE 0x27 /* U+001B */ # define LATIN_SMALL_LETTER_SHARP_S_NATIVE 0x59 /* U+00DF */ +# define LATIN_SMALL_LETTER_SHARP_S_UTF8 "\x80\x72" /* U+00DF */ # define LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_NATIVE 0x47 /* U+00E5 */ # define LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_NATIVE 0x67 /* U+00C5 */ # define LATIN_SMALL_LETTER_Y_WITH_DIAERESIS_NATIVE 0xDF /* U+00FF */ # define MICRO_SIGN_NATIVE 0xA0 /* U+00B5 */ +# define MICRO_SIGN_UTF8 "\x78\x63" /* U+00B5 */ # define MAX_PRINT_A_FOR_USE_ONLY_BY_REGCOMP_DOT_C 0xF9 /* The max code point that isPRINT_A */ #endif /* EBCDIC 037 */ -- 1.8.3.1