]> granicus.if.org Git - apache/commitdiff
A band-aid to resolve an immediate IBM MVS'ism
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 18 Aug 2016 20:41:27 +0000 (20:41 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 18 Aug 2016 20:41:27 +0000 (20:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756849 13f79535-47bb-0310-9956-ffa450edef68

server/gen_test_char.c

index 9e55bad6c40da744a7f01281681205d7bf9c0a20..ce5bf6d188c6bfd13a400fff573e0a1b604d975e 100644 (file)
 
 #if APR_CHARSET_EBCDIC
 /* See util.c for complete explanation of this table */
+/* The conditional transposition below is to accomodate MVS */
 static const short ucharmap[] = {
     0x00, 0x01, 0x02, 0x03, 0x9C, 0x09, 0x86, 0x7F,
     0x97, 0x8D, 0x8E, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
-    0x10, 0x11, 0x12, 0x13, 0x9D, 0x85, 0x08, 0x87,
+    0x10, 0x11, 0x12, 0x13, 0x9D, ('\n' == 0x15 ? 0x0A : 0x85), 0x08, 0x87,
     0x18, 0x19, 0x92, 0x8F, 0x1C, 0x1D, 0x1E, 0x1F,
-    0x80, 0x81, 0x82, 0x83, 0x84, 0x0A, 0x17, 0x1B,
+    0x80, 0x81, 0x82, 0x83, 0x84, ('\n' == 0x25 ? 0x0A : 0x85), 0x17, 0x1B,
     0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x05, 0x06, 0x07,
     0x90, 0x91, 0x16, 0x93, 0x94, 0x95, 0x96, 0x04,
     0x98, 0x99, 0x9A, 0x9B, 0x14, 0x15, 0x9E, 0x1A,