Gan Uesli Starling wrote:
> I see hundreds of these error messages from -w switch...
>
> Character in "C" format wrapped at ./FYBB_DirTree.pm line 867.
>
> ...here is line 867...
>
> $buf = pack( 'C*', @{ $bufRfs[0] } );
>
> ...but my program (an encryption routine) works jus fine. I
> packing with C* only because of file length being random
> since input is any plain file and output is cypher text.
>
> It works, though. I can encrypt a JPEG, then decrypt it
> and view it.
perldoc perldiag
Character in "C" format wrapped
(W pack) You said
pack("C", $x)
where $x is either less than 0 or more than 255; the "C"
format is
only for encoding native operating system characters (ASCII,
EBCDIC, and so on) and not for Unicode characters, so Perl
behaved
as if you meant
pack("C", $x & 255)
If you actually want to pack Unicode codepoints, use the "U"
format
instead.
Cheers,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]