Test::More a utf-8
Jan Kasprzak
kas na fi.muni.cz
Pátek Březen 2 15:34:24 MET 2007
Proc Test::More nema rado utf-8 znakova data?
Priklad:
$ cat t.t
binmode STDOUT, ':utf8';
binmode STDERR, ':utf8';
use utf8;
use Test::More qw(no_plan);
is('ježek', 'tučňák', 'jen pokus');
$ perl -CSD t.t
not ok 1 - jen pokus
# Failed test 'jen pokus'
# in t.t at line 8.
Wide character in print at /usr/lib/perl5/5.8.8/Test/Builder.pm line 1199.
# got: 'ježek'
# expected: 'tučňák'
1..1
# Looks like you failed 1 test of 1.
$
Nelibi se mi ta hlaska o "Wide character", ktera tam je i pres
-CSD a binmode.
-Y.
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
> I will never go to meetings again because I think face to face meetings <
> are the biggest waste of time you can ever have. --Linus Torvalds <
Další informace o konferenci Perl