From 51fa28757b68b969adeb3bd418ee23a8f38743c4 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 18 Aug 2016 20:41:27 +0000 Subject: [PATCH] A band-aid to resolve an immediate IBM MVS'ism git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756849 13f79535-47bb-0310-9956-ffa450edef68 --- server/gen_test_char.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/gen_test_char.c b/server/gen_test_char.c index 9e55bad6c4..ce5bf6d188 100644 --- a/server/gen_test_char.c +++ b/server/gen_test_char.c @@ -34,12 +34,13 @@ #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, -- 2.40.0