* David E. Wheeler <[EMAIL PROTECTED]> [2008-02-25 20:05]: > I'd probably make :utf8 the default, and apply it to STDOUT > and STDERR if running on Perl 5.6 or later. That way, any > time something is emitted via diag() that is in Perl's internal > encoding, it will work (provided, of course, that the user's > terminal supports UTF-8, which is not your problem).
It is *precisely* his problem if he assumes that every terminal in the world is UTF-8 – particularly if this causes tests to emit octets that the terminal interprets as control sequences, with the end result being a screwy, unusable terminal. Providing a `layer` option in addition to duplicating the dup’d filehandles’ layers by default would be a nice touch; blithely making UTF-8 the default would not. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>