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
Non-english error messages corrupted under perl-5.19.2+ #367
Comments
I'm not sure I understand. If this is a Perl problem, what can we do about it? |
a) that's not clear if it will be fixed or no by next stable version. it's entirely up to you, if you think it's not issue, np, just close it. |
Do you have suggestions as to what we might do? |
I assume your workflow is to never set STDOUT/STDERR encoding. So something like,
Would make your code compatible with both old perls and 5.19.2/3 (not sure about future versions) |
The problem with setting the encoding to UTF-8 by default is that we're assuming that the user's locale is UTF-8. If it's ISO-8859-1, KOI-8, etc, we still have the same problem. Also, I'm not sure if |
the thing that under perl5.19.2 and perl5.19.3 $! has UTF-8 flag only if locale was UTF-8. ( this is discussed in https://rt.perl.org/rt3/Ticket/Display.html?id=119499 ) so code like
will work too. if locale is not UTF-8, perl 5.19.x will behave like any other older version. |
@vsespb Ah, interesting. That approach might just work! |
I don't want to do anything with this at this point. 5.19.2 is a development version of Perl, and I'm hoping that this bug is just a blip in this verison. |
ok, np |
So how about closing this one since it is not an ack bug? |
so, now in perl-5.21.2+ all error messages will be in English |
(Russian error message printed with warning, French is corrupted)
this is due to breaking change introduced in perl:
https://rt.perl.org/rt3/Ticket/Display.html?id=119499
note: I am not 100% sure if this change will go to stable version or no.
note: ack1 affected too
The text was updated successfully, but these errors were encountered: