X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Futf8.t;h=81ebc221614c57940e2b48efc8eaca0d0fb97580;hb=1d74b28c229b5172175a0073070beb529386ac4f;hp=70ef1e3294280325d63feaebccd2a01a0080ba6b;hpb=bd7017d37d1ea75ed228b98d66032e165497283f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/utf8.t b/lib/utf8.t index 70ef1e3..81ebc22 100644 --- a/lib/utf8.t +++ b/lib/utf8.t @@ -37,7 +37,7 @@ no utf8; # Ironic, no? # # -plan tests => 146; +plan tests => 150; { # bug id 20001009.001 @@ -431,3 +431,11 @@ SKIP: { qr/Undefined subroutine utf8::moo/, {stderr=>1}, "Check Carp is loaded for AUTOLOADing errors") } + +{ + # failure of is_utf8_char() without NATIVE_TO_UTF on EBCDIC (0260..027F) + ok(utf8::valid(chr(0x250)), "0x250"); + ok(utf8::valid(chr(0x260)), "0x260"); + ok(utf8::valid(chr(0x270)), "0x270"); + ok(utf8::valid(chr(0x280)), "0x280"); +}