summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perl.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index c7a94c24c4..2c1302d3b8 100644
--- a/perl.h
+++ b/perl.h
@@ -4012,4 +4012,24 @@ extern void moncontrol(int);
#include "wince.h"
#endif
+/* ISO 6429 NEL - C1 control NExt Line */
+/* See http://www.unicode.org/unicode/reports/tr13/ */
+#ifdef EBCDIC /* In EBCDIC NEL is just an alias for LF */
+# if '^' == 95 /* CP 1047: MVS OpenEdition - OS/390 - z/OS */
+# define NEXT_LINE_CHAR 0x15
+# else /* CDRA */
+# define NEXT_LINE_CHAR 0x25
+# endif
+#else
+# define NEXT_LINE_CHAR 0x85
+#endif
+
+/* The UTF-8 bytes of the Unicode LS and PS, U+2028 and U+2029 */
+#define UNICODE_LINE_SEPA_0 0xE2
+#define UNICODE_LINE_SEPA_1 0x80
+#define UNICODE_LINE_SEPA_2 0xA8
+#define UNICODE_PARA_SEPA_0 0xE2
+#define UNICODE_PARA_SEPA_1 0x80
+#define UNICODE_PARA_SEPA_2 0xA9
+
#endif /* Include guard */