On Fri, May 26, 2006 at 02:56:17PM -0700, Jason Rhinelander wrote:
> Gunnar Koppel wrote:
[...]
> > I have little problem with UTF-8 under modperl2. I made such little
> > script for testing:
[...]
> > binmode stdin, ":utf8";
> > binmode stdout, ":utf8";
[...]
> binmode STDOUT, ":utf8";
> 
> makes it work properly.  This seems to me like a bug, but perhaps
> someone more familiar with mod_perl's STDOUT tying than I can explain
> this (or confirm this as a bug).

Duh. Sorry I didn't see that before. In Perl, the file handles for
stdin, stdout and stderr are written in capital letters. So this is not
a bug.

It might be considered annoying that Perl doesn't complain if you pass a
not-yet-defined file handle (stdin in this case). Even with 'use
strict'.

Regards
-- tomás

Attachment: signature.asc
Description: Digital signature

Reply via email to