\n prestal byt \p{IsPrint}

Jan Kasprzak kas na fi.muni.cz
Čtvrtek Březen 10 10:12:13 CET 2011


	Pri pokusu o prechod na novejsi Perl jsem zjistil, ze newline
ted neni povazovany za tisknutelny znak:

$ perl -Mutf8 -e '$a = "\n"; if ($a =~ /\p{IsPrint}/) { print "OK\n" } else { print "KO\n" }'
KO

Az do 5.10 tohleto vypise "OK", na 5.12 nikoliv. Nerad bych se poustel
do prochazeni kodu kde vsude je to potreba zmenit, nevite nekdo jestli
jde nejak globalne vratit puvodni chovani?

-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/ |
Please don't top post and in particular don't attach entire digests to your
mail or we'll all soon be using bittorrent to read the list.     --Alan Cox


Další informace o konferenci Perl