From c11f6329a2001a507b929b443e7512970fe62202 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 6 Mar 2019 14:00:10 -0700 Subject: Check for \n in EBCDIC code pages IBM says that there are 13 characters whose code point varies depending on the EBCDIC code page. They fail to mention that the \n character may also vary. This commit adds checks for \n, in addition to the checks for the 13 graphic variant ones. --- ebcdic_tables.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ebcdic_tables.h') diff --git a/ebcdic_tables.h b/ebcdic_tables.h index 99f533bae7..4036114cb1 100644 --- a/ebcdic_tables.h +++ b/ebcdic_tables.h @@ -40,7 +40,7 @@ SOFTWARE. #if 'A' == 193 /* EBCDIC 1047 */ \ && '\\' == 224 && '[' == 173 && ']' == 189 && '{' == 192 && '}' == 208 \ && '^' == 95 && '~' == 161 && '!' == 90 && '#' == 123 && '|' == 79 \ - && '$' == 91 && '@' == 124 && '`' == 121 + && '$' == 91 && '@' == 124 && '`' == 121 && '\n' == 21 /* Index is ASCII platform code point; value is EBCDIC 1047 equivalent */ # ifndef DOINIT @@ -417,7 +417,7 @@ SOFTWARE. #if 'A' == 193 /* EBCDIC 037 */ \ && '\\' == 224 && '[' == 186 && ']' == 187 && '{' == 192 && '}' == 208 \ && '^' == 176 && '~' == 161 && '!' == 90 && '#' == 123 && '|' == 79 \ - && '$' == 91 && '@' == 124 && '`' == 121 + && '$' == 91 && '@' == 124 && '`' == 121 && '\n' == 37 /* Index is ASCII platform code point; value is EBCDIC 037 equivalent */ # ifndef DOINIT -- cgit v1.2.1