From: Jarkko Hietaniemi Date: Tue, 27 Nov 2001 01:08:10 +0000 (+0000) Subject: UTF-EBCDIC. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cdb2dd7b4ee19fda563e304299e333d9e59c2c9e;p=p5sagit%2Fp5-mst-13.2.git UTF-EBCDIC. p4raw-id: //depot/perl@13300 --- diff --git a/ext/Devel/Peek/Peek.t b/ext/Devel/Peek/Peek.t index dde4cd1..5144be7 100644 --- a/ext/Devel/Peek/Peek.t +++ b/ext/Devel/Peek/Peek.t @@ -317,6 +317,16 @@ do_test(17, FLAGS = $ADDR EGV = $ADDR\\t"a"'); +if (ord('A') == 193) { +do_test(18, + chr(256).chr(0).chr(512), +'SV = PV\\($ADDR\\) at $ADDR + REFCNT = 1 + FLAGS = \\((?:PADBUSY,PADTMP,)?POK,READONLY,pPOK,UTF8\\) + PV = $ADDR "\\\214\\\101\\\0\\\235\\\101"\\\0 \[UTF8 "\\\x\{100\}\\\x\{0\}\\\x\{200\}"\] + CUR = 5 + LEN = 6'); +} else { do_test(18, chr(256).chr(0).chr(512), 'SV = PV\\($ADDR\\) at $ADDR @@ -325,7 +335,35 @@ do_test(18, PV = $ADDR "\\\304\\\200\\\0\\\310\\\200"\\\0 \[UTF8 "\\\x\{100\}\\\x\{0\}\\\x\{200\}"\] CUR = 5 LEN = 6'); +} +if (ord('A') == 193) { +do_test(19, + {chr(256)=>chr(512)}, +'SV = RV\\($ADDR\\) at $ADDR + REFCNT = 1 + FLAGS = \\(ROK\\) + RV = $ADDR + SV = PVHV\\($ADDR\\) at $ADDR + REFCNT = 2 + FLAGS = \\(SHAREKEYS\\) + IV = 1 + NV = 0 + ARRAY = $ADDR \\(0:7, 1:1\\) + hash quality = 100.0% + KEYS = 1 + FILL = 1 + MAX = 7 + RITER = -1 + EITER = $ADDR + Elt "\\\241\\\101" \[UTF8 "\\\x\{100\}"\] HASH = $ADDR + SV = PV\\($ADDR\\) at $ADDR + REFCNT = 1 + FLAGS = \\(POK,pPOK,UTF8\\) + PV = $ADDR "\\\235\\\101"\\\0 \[UTF8 "\\\x\{200\}"\] + CUR = 2 + LEN = 3'); +} else { do_test(19, {chr(256)=>chr(512)}, 'SV = RV\\($ADDR\\) at $ADDR @@ -351,6 +389,7 @@ do_test(19, PV = $ADDR "\\\310\\\200"\\\0 \[UTF8 "\\\x\{200\}"\] CUR = 2 LEN = 3'); +} END { 1 while unlink("peek$$");