Wide character in syswrite

Robert Rothenberg robrwo at gmail.com
Tue Dec 11 23:46:02 GMT 2007


On 11/12/07 17:40 Jonathan Rockway wrote:
> On Tue, 2007-12-11 at 17:35 +0000, Matt Lawrence wrote:
>> so I would guess the right thing to
>> do is to Encode::decode('UTF-8', ...) before passing into the module.
> 
> No.  You should fix the module and send the author a patch.  It might
> take 5 extra minutes, but you'll fix the problem *for every person in
> the world* :)

The data is properly encoded in UTF-8, and Encode::is_utf8($strong, -1) says
it's well-formed UTF-8.

So which module is broken? Net::Dict or Net::Cmd?  The error is associated
with file handles not being configured for utf8, so I suspect the latter.





More information about the london.pm mailing list