-
Notifications
You must be signed in to change notification settings - Fork 11
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
"print $!" prints bad characters #9
Comments
This sounds to me not like a bug in utf8::all but in perl itself. Perl has no idea it should interpret $! as UTF-8 or not, so decides to treat it like latin1. |
Yes it looks more like Perl bug, because smth like
|
@Leont: Is there a workaround we could use for Perl's global variables like |
I think I forgot to report it, and I can't find it on rt either. I don't think there's an easy way of dealing with this, other than decoding $! explicitly |
Actually, I'm pretty sure it'd be possible to monkey-patch |
If you can dig it up, that could be useful for perls that don't have this issue fixed. |
You can find it at https://github.com/Leont/utf8-errno. I haven't tested it at all beyond "it compiles" though. |
On my system this program prints unreadable characters
Ð Ñоединении оÑказано
My locale is ru_RU.UTF-8. At the same time
die $!, "\n";
prints correct characters.The text was updated successfully, but these errors were encountered: