summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-02 18:15:44 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-02 18:15:44 +0000
commit0407a77bc74fb10c233a2d09d551311e3628eba5 (patch)
treead55d999e39afdef05d0e6a3872fa0e556784a31 /regcomp.c
parent12a98ad5c89fb8cd6cec9de80136f28ee2c769ff (diff)
downloadperl-0407a77bc74fb10c233a2d09d551311e3628eba5.tar.gz
ebcdic fix for Data::Dumper from Peter Prymmer
p4raw-id: //depot/perl@4745
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 3e7c012332..90500a4678 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2570,11 +2570,19 @@ tryagain:
p++;
break;
case 'e':
- ender = '\033';
+#ifdef ASCIIish
+ ender = '\033';
+#else
+ ender = '\047';
+#endif
p++;
break;
case 'a':
- ender = '\007';
+#ifdef ASCIIish
+ ender = '\007';
+#else
+ ender = '\057';
+#endif
p++;
break;
case 'x':
@@ -2910,8 +2918,13 @@ S_regclass(pTHX)
case 't': value = '\t'; break;
case 'f': value = '\f'; break;
case 'b': value = '\b'; break;
+#ifdef ASCIIish
case 'e': value = '\033'; break;
case 'a': value = '\007'; break;
+#else
+ case 'e': value = '\047'; break;
+ case 'a': value = '\057'; break;
+#endif
case 'x':
value = (UV)scan_hex(PL_regcomp_parse, 2, &numlen);
PL_regcomp_parse += numlen;
@@ -3372,8 +3385,13 @@ S_regclassutf8(pTHX)
case 't': value = '\t'; break;
case 'f': value = '\f'; break;
case 'b': value = '\b'; break;
+#ifdef ASCIIish
case 'e': value = '\033'; break;
case 'a': value = '\007'; break;
+#else
+ case 'e': value = '\047'; break;
+ case 'a': value = '\057'; break;
+#endif
case 'x':
if (*PL_regcomp_parse == '{') {
e = strchr(PL_regcomp_parse++, '}');