-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with non-ascii ouput #7
Comments
From [email protected] (@eserte) on 2016-02-28 18:50:13 On 2016-02-26 03:05:24, vsespb wrote:
I wonder if a better solution would be to use an encoding layer on stdout. Also, what if the current terminal is not a utf8 one? Probably one should look at the current locale to decide whether to output utf8 or something different. Also this removal does not look right:
There are control characters in the range \x80-\x9f which should be handled. |
From [email protected] on 2016-02-28 19:02:27
Okay. The bug persists (and fix fixes it) for any valid test, which prints UTF-8 to console. i.e. for this too: ===
|
From [email protected] on 2016-02-28 19:11:11
If you meant use binmode STDOUT, ":utf8", instead of "print { $self->stdout } Encode::encode("UTF-8", $self->xml->testsuites( @suites ));" I think no, it's better when only main program (.pl script; not .pm) changes STDOUT layers, otherwise it's a mess. And btw, even if we do (like in patch)print { $self->stdout } Encode::encode("UTF-8", $self->xml->testsuites( @suites ));this won't work if main program already did ===
|
From [email protected] (@eserte) on 2016-02-28 19:21:39 On 2016-02-28 14:02:27, vsespb wrote:
Maybe this kind of problems will be addressed in the refactored Test::More/Test::Builder --- see https://metacpan.org/release/Test2 |
Migrated from rt.cpan.org #112446 (status was 'open')
Requestors:
Attachments:
From [email protected] on 2016-02-26 08:05:24
:
i.e. when tests have non-ascii messages like:
ok 1, "п�иве�"; # Russian message
attaching patch (for version 0.11).
The text was updated successfully, but these errors were encountered: