From: Jarkko Hietaniemi Date: Wed, 30 Jan 2002 01:01:26 +0000 (+0000) Subject: EBCDIC: t/op/lc.t now passes. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c811e6163da8915280ba82d37d0a94ee733ab63b;p=p5sagit%2Fp5-mst-13.2.git EBCDIC: t/op/lc.t now passes. p4raw-id: //depot/perl@14495 --- diff --git a/t/op/lc.t b/t/op/lc.t index 091df87..1fbb3e1 100644 --- a/t/op/lc.t +++ b/t/op/lc.t @@ -82,14 +82,31 @@ ok(lc($b) eq "\x{101}\x{101}aa", 'lc'); # \x{149} is LATIN SMALL LETTER N PRECEDED BY APOSTROPHE, its uppercase is # \x{2BC}\x{E4} or MODIFIER LETTER APOSTROPHE and N. -ok("\U\x{DF}ab\x{149}cd" eq "SSAB\x{2BC}NCD", - "multicharacter uppercase"); +# In EBCDIC \x{DF} is LATIN SMALL LETTER Y WITH DIAERESIS, +# and it's uppercase is \x{178}, LATIN CAPITAL LETTER Y WITH DIAERESIS. + +if (ord("A") == 193) { # EBCDIC + ok("\U\x{DF}aB\x{149}cD" eq "\x{178}AB\x{2BC}NCD", + "multicharacter uppercase"); +} elsif (ord("A") == 65) { + ok("\U\x{DF}aB\x{149}cD" eq "SSAB\x{2BC}NCD", + "multicharacter uppercase"); +} else { + ok(0, "what is your encoding?"); +} # The \x{DF} is its own lowercase, ditto for \x{149}. # There are no single character -> multiple characters lowercase mappings. -ok("\L\x{DF}AB\x{149}CD" eq "\x{DF}ab\x{149}cd", - "multicharacter lowercase"); +if (ord("A") == 193) { # EBCDIC + ok("\LaB\x{149}cD" eq "ab\x{149}cd", + "multicharacter lowercase"); +} elsif (ord("A") == 65) { + ok("\L\x{DF}aB\x{149}cD" eq "\x{DF}ab\x{149}cd", + "multicharacter lowercase"); +} else { + ok(0, "what is your encoding?"); +} # titlecase is used for \u / ucfirst.