in reply to Re^2: LWP::ConsoleLogger::Easy messes the console on (seemingly) unicode LWP response: is it a case of broken unicode?
in thread LWP::ConsoleLogger::Easy messes the console on (seemingly) unicode LWP response: is it a case of broken unicode?

I could be wrong, but I think the only thing that would corrupt a terminal would be control codes, and specifically the escape character \e. Any utility meant to dump protocol traffic to a terminal should always escape the control codes. Before reporting it, see if you can find the line that does the printing, and add this:
$str =~ /([\0-\x09\x0B\x1F])/sprintf("\\x%02X", ord $1)/ge;
and see if it stops corrupting your terminal. Then you could submit a pull request instead of a bug report :-)
  • Comment on Re^3: LWP::ConsoleLogger::Easy messes the console on (seemingly) unicode LWP response: is it a case of broken unicode?
  • Download Code