Unicode Depresses Me

Perl is meant to have reasonable Unicode support. So why do I still have to write this at the top of a test?

  use utf8;
  use Test::More 'no_plan';
      my $Test = Test::Builder->new;
      binmode( $Test->output,         ":utf8" );
      binmode( $Test->failure_output, ":utf8" );
      binmode( $Test->todo_output,    ":utf8" );

I would have thought that adding the -CS flag to the #! line would have fixed this. But that doesn’t do it. Ah well, I’ve filed a wishlist bug: RT#21091.

Comments 2

  1. Aristotle Pagaltzis wrote:

    Does the open pragma help any?

    Posted 21 Aug 2006 at 04:15
  2. Dominic Mitchell wrote:

    Sadly, it still comes up with a bunch of warnings about “Wide character in print”. 🙁

    Posted 21 Aug 2006 at 07:18