Revision: 1570
http://vcs.pcre.org/viewvc?view=rev&revision=1570
Author: ph10
Date: 2015-06-22 10:38:41 +0100 (Mon, 22 Jun 2015)
Log Message:
-----------
Fix EBCDIC [\h] bug.
Modified Paths:
--------------
code/trunk/ChangeLog
code/trunk/pcre_internal.h
Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog 2015-06-19 16:10:07 UTC (rev 1569)
+++ code/trunk/ChangeLog 2015-06-22 09:38:41 UTC (rev 1570)
@@ -68,6 +68,8 @@
16. When PCRE was compiled without UCP support, the use of \p and \P gave an
error (correctly) when used outside a class, but did not give an error
within a class.
+
+17. \h within a class was incorrectly compiled in EBCDIC environments.
Version 8.37 28-April-2015
Modified: code/trunk/pcre_internal.h
===================================================================
--- code/trunk/pcre_internal.h 2015-06-19 16:10:07 UTC (rev 1569)
+++ code/trunk/pcre_internal.h 2015-06-22 09:38:41 UTC (rev 1570)
@@ -1037,7 +1037,7 @@
/* ------ EBCDIC environments ------ */
#else
-#define HSPACE_LIST CHAR_HT, CHAR_SPACE, CHAR_NBSP
+#define HSPACE_LIST CHAR_HT, CHAR_SPACE, CHAR_NBSP, NOTACHAR
#define HSPACE_BYTE_CASES \
case CHAR_HT: \
@@ -1216,7 +1216,7 @@
#define CHAR_ESC '\047'
#define CHAR_DEL '\007'
-#define CHAR_NBSP '\101'
+#define CHAR_NBSP '\x41'
#define STR_ESC "\047"
#define STR_DEL "\007"