summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-17 13:47:13 -0700
committerKarl Williamson <public@khwilliamson.com>2013-08-29 09:55:52 -0600
commitf4cd282cd75f0333d0ce591c83812eed609d5283 (patch)
tree5b2e6e4c08b6fe67d75a9d93dea211e71988c3ca /perly.c
parent94bb8c36d9e11dd4825e43d06f0832f01a7e5045 (diff)
downloadperl-f4cd282cd75f0333d0ce591c83812eed609d5283.tar.gz
Remove EBCDIC remappings
Now that the Unicode tables are stored in native format, we shouldn't be doing remapping. Note that this assumes that the Latin1 casing tables are stored in native order; not all of this has been done yet.
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/perly.c b/perly.c
index d7d9ea34c6..5a934dccd9 100644
--- a/perly.c
+++ b/perly.c
@@ -342,9 +342,12 @@ Perl_yyparse (pTHX_ int gramtype)
parser->yychar = yylex();
#endif
+/* perly.tab is shipped based on an ASCII system; if it were to be regenerated
+ * on a platform that doesn't use ASCII, this translation back would need to be
+ * removed */
# ifdef EBCDIC
if (parser->yychar >= 0 && parser->yychar < 255) {
- parser->yychar = NATIVE_TO_ASCII(parser->yychar);
+ parser->yychar = NATIVE_TO_LATIN1(parser->yychar);
}
# endif
}