Skip to content

utf8::all is doing something un-lexical #5

doherty opened this Issue Jun 7, 2011 · 6 comments

2 participants

doherty commented Jun 11, 2011

OK, the culprit is:

open::import($class, ':encoding(UTF-8)');

Removing that line, or changing to utf8 (the non-strict sister encoding to :encoding(UTF-8)) fixes the warning. That said, I have no idea what the root cause is or how to actually fix this.

doherty commented Jun 12, 2011

@tokuhirom, @schwern: I can silence the warning by simply switching the encoding set on that line, but I don't think that is a good solution. I prefer to use utf-8-strict because it picks up this sort of thing, but more importantly, I'm not sure why Perl is issuing that warning, since the character occurs outside anything we should be touching. Simply silencing the warning without understanding why it is issued makes me feel icky. Unfortunately, I don't think I know enough to fix this properly without help.

doherty commented Jun 14, 2011

@tokuhirom, @schwern: see 221e994 for my sort-of-proposed fix.

Leont commented Jul 31, 2011

As said here, the issue is with perl itself, not with utf8::all. Changing from :encoding(utf8) to :utf8 will kill the warning but not the real problem. I don't know yet if it's possible to work around this problem though.

doherty commented Dec 15, 2011

This was discussed at some point on p5p. I meant to ask if there was a workaround older Perls could use, but I don't think I ever did. I should check who was talking about this and get in touch with them about it.

@doherty doherty was assigned Dec 15, 2011
doherty commented Feb 23, 2013

This is a bug in Perl.

@doherty doherty closed this Feb 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.