source:
trunk/essentials/dev-lang/perl/t/io/utf8.t@
3184
| Last change on this file since 3184 was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 7.8 KB | |
| Line | |
|---|---|
| 1 | #!./perl |
| 2 | |
| 3 | BEGIN { |
| 4 | chdir 't' if -d 't'; |
| 5 | @INC = '../lib'; |
| 6 | unless (find PerlIO::Layer 'perlio') { |
| 7 | print "1..0 # Skip: not perlio\n"; |
| 8 | exit 0; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | no utf8; # needed for use utf8 not griping about the raw octets |
| 13 | |
| 14 | require "./test.pl"; |
| 15 | |
| 16 | plan(tests => 55); |
| 17 | |
| 18 | $| = 1; |
| 19 | |
| 20 | open(F,"+>:utf8",'a'); |
| 21 | print F chr(0x100).'£'; |
