Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Bug in perl -C (Unicode) option parsing?

by Khen1950fx (Canon)
on Feb 13, 2007 at 07:18 UTC ( [id://599655]=note: print w/replies, xml ) Need Help??


in reply to Bug in perl -C (Unicode) option parsing?

I took your CDS.pl and got this:

#!/usr/bin/perl -l -CDS use strict; use warnings; use diagnostics; binmode STDOUT, ":utf8"; print ${^UNICODE}, ' ', "\x{100}";

Perl met a wide character when it wasn't expecting one, so you have to add the utf8 layer to silence it.

Replies are listed 'Best First'.
Re^2: Bug in perl -C (Unicode) option parsing?
by ikegami (Patriarch) on Feb 13, 2007 at 07:25 UTC

    so you have to add the utf8 layer to silence it.

    That's what -CDS is suppose to do! And like the OP shows, that's what -CDS does ...but not always. That's the bug.

      Thanks for the input, ikegami. Got it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://599655]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-25 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found