summaryrefslogtreecommitdiff
path: root/lib/Unicode
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-23 23:20:57 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-23 23:20:57 +0000
commit4a2e806c60950b53f59db24f137b2ce730376949 (patch)
tree223a98f6b236255ade9498a9adcb8b3dcf58ef06 /lib/Unicode
parent4d3a5e44f253534c3f29cb73161a6380684b479b (diff)
downloadperl-4a2e806c60950b53f59db24f137b2ce730376949.tar.gz
EBCDIC: disable also Unicode::Collate and
Unicode::Normalize for now. Real users of EBCDIC have to decide what they want. p4raw-id: //depot/perl@14848
Diffstat (limited to 'lib/Unicode')
-rw-r--r--lib/Unicode/Collate.pm16
-rw-r--r--lib/Unicode/Collate/t/test.t7
2 files changed, 23 insertions, 0 deletions
diff --git a/lib/Unicode/Collate.pm b/lib/Unicode/Collate.pm
index bd10fdd22f..8522a79f2c 100644
--- a/lib/Unicode/Collate.pm
+++ b/lib/Unicode/Collate.pm
@@ -1,5 +1,11 @@
package Unicode::Collate;
+BEGIN {
+ if (ord("A") == 193) {
+ die "Unicode::Collate not ported to EBCDIC\n";
+ }
+}
+
use 5.006;
use strict;
use warnings;
@@ -776,6 +782,16 @@ is primary equal to C<"m>E<252>C<ss">.
None by default.
+=head2 TODO
+
+Unicode::Collate has not been ported to EBCDIC. The code mostly would
+work just fine but a decision needs to be made: how the module should
+work in EBCDIC? Should the low 256 characters be understood as
+Unicode or as EBCDIC code points? Should one be chosen or should
+there be a way to do either? Or should such translation be left
+outside the module for the user to do, for example by using
+Encode::from_to()?
+
=head2 CAVEAT
Use of the C<normalization> parameter requires
diff --git a/lib/Unicode/Collate/t/test.t b/lib/Unicode/Collate/t/test.t
index d9ee1fe2e3..57e20579cb 100644
--- a/lib/Unicode/Collate/t/test.t
+++ b/lib/Unicode/Collate/t/test.t
@@ -3,6 +3,13 @@
#########################
+BEGIN {
+ if (ord("A") == 193) {
+ print "1..0 # Unicode::Collate not ported to EBCDIC\n";
+ exit 0;
+ }
+}
+
use Test;
BEGIN { plan tests => 54 };
use Unicode::Collate;