diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-02 18:15:44 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-02 18:15:44 +0000 |
commit | 0407a77bc74fb10c233a2d09d551311e3628eba5 (patch) | |
tree | ad55d999e39afdef05d0e6a3872fa0e556784a31 /regcomp.c | |
parent | 12a98ad5c89fb8cd6cec9de80136f28ee2c769ff (diff) | |
download | perl-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.c | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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++, '}'); |