On Thu, 11 Sep 2008 15:19:17 +0200 Paul Johnson <[EMAIL PROTECTED]> wrote:
> since the standard streams are already set up > at this point in the execution of the perl interpreter. You can use > binmode() instead to get the desired behaviour. Waaait a moment. Why can't -C just call binmode itself? This is getting stupider by the moment. I've even tried this; it JustWorks: #!/usr/bin/perl BEGIN { exec $^X, "-COL", "-f", $0, @ARGV unless ${^UNICODE} } print "Hello w\xe9rld\n"; $ ./test-unicode.pl Hello wérld -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/
signature.asc
Description: PGP signature