summaryrefslogtreecommitdiff
path: root/ebcdic_tables.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-05-25 11:15:01 -0600
committerSawyer X <xsawyerx@cpan.org>2020-05-27 11:09:32 +0300
commit65a97d491a9a6a59c242ed7027d1a284cf7c8d6d (patch)
treecf1b5c30349c8c0eec986a6ec7ebdf40de3d9bcd /ebcdic_tables.h
parente2d0e9a5d1dd29d4005ca9a3e73222eeabd9e2b7 (diff)
downloadperl-65a97d491a9a6a59c242ed7027d1a284cf7c8d6d.tar.gz
Fix tr/// determination of inplace editing for EBCDIC
I realized as a result of fixing GH #17654, that the code didn't properly decide if a tr/// can be done in-place on EBCDIC platforms. Since we didn't have an EBCDIC smoker at the time, I couldn't be sure that the fix actually worked. Now that we do have a smoker, I have successfully tested it. This patch is constructed so that the code generated on non-EBCDIC platforms should not be changed by it.
Diffstat (limited to 'ebcdic_tables.h')
-rw-r--r--ebcdic_tables.h110
1 files changed, 0 insertions, 110 deletions
diff --git a/ebcdic_tables.h b/ebcdic_tables.h
index 9fdcbb6e76..cf1beeb85e 100644
--- a/ebcdic_tables.h
+++ b/ebcdic_tables.h
@@ -413,60 +413,6 @@ SOFTWARE.
};
# endif
-/* This table partitions all the code points of the platform into ranges which
- * have the property that all the code points in each range have the same
- * number of bytes in their UTF-EBCDIC representations, and the adjacent
- * ranges have a different number of bytes.
- *
- * Each number in the table begins such a range, which extends up to just
- * before the following table entry, except the final entry is understood to
- * extend to the platform's infinity
- */
-# ifndef DOINIT
- EXTCONST UV PL_partition_by_byte_length[38];
-# else
- EXTCONST UV PL_partition_by_byte_length[38] = {
- 0x00,
- 0x41,
- 0x4b,
- 0x51,
- 0x5a,
- 0x62,
- 0x6b,
- 0x70,
- 0x79,
- 0x80,
- 0x81,
- 0x8a,
- 0x91,
- 0x9a,
- 0xa1,
- 0xaa,
- 0xad,
- 0xae,
- 0xbd,
- 0xbe,
- 0xc0,
- 0xca,
- 0xd0,
- 0xda,
- 0xe0,
- 0xe1,
- 0xe2,
- 0xea,
- 0xf0,
- 0xfa,
- 0xff,
- 0x100,
- 0x400,
- 0x4000,
- 0x40000,
- 0x400000,
- 0x4000000,
- 0x40000000
-};
-# endif
-
#endif /* EBCDIC 1047 */
#if 'A' == 193 /* EBCDIC 037 */ \
@@ -845,62 +791,6 @@ SOFTWARE.
};
# endif
-/* This table partitions all the code points of the platform into ranges which
- * have the property that all the code points in each range have the same
- * number of bytes in their UTF-EBCDIC representations, and the adjacent
- * ranges have a different number of bytes.
- *
- * Each number in the table begins such a range, which extends up to just
- * before the following table entry, except the final entry is understood to
- * extend to the platform's infinity
- */
-# ifndef DOINIT
- EXTCONST UV PL_partition_by_byte_length[40];
-# else
- EXTCONST UV PL_partition_by_byte_length[40] = {
- 0x00,
- 0x41,
- 0x4b,
- 0x51,
- 0x5a,
- 0x5f,
- 0x60,
- 0x62,
- 0x6b,
- 0x70,
- 0x79,
- 0x80,
- 0x81,
- 0x8a,
- 0x91,
- 0x9a,
- 0xa1,
- 0xaa,
- 0xb0,
- 0xb1,
- 0xba,
- 0xbc,
- 0xc0,
- 0xca,
- 0xd0,
- 0xda,
- 0xe0,
- 0xe1,
- 0xe2,
- 0xea,
- 0xf0,
- 0xfa,
- 0xff,
- 0x100,
- 0x400,
- 0x4000,
- 0x40000,
- 0x400000,
- 0x4000000,
- 0x40000000
-};
-# endif
-
#endif /* EBCDIC 037 */
#endif /* PERL_EBCDIC_TABLES_H_ */