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
funny results from ~ on non-Latin-1 string #9668
Comments
From zefram@fysh.orgCreated by zefram@fysh.org$ perl -lwe 'print ord(~"\x{aaa}")' ~ is documented to operate on integers or bit strings, but "\x{aaa}" I think ~ on a string that is neither a number nor an octet string should Perl Info
|
From @ysthZefram wrote:
Not a bug. The existing behavior was Jarkko's call during 5.7.x development, though it See http://www.nntp.perl.org/group/perl.perl5.porters/2000/11/msg25864.html |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Thu, Jul 16, 2009 at 11:49 PM, Yitzchak Scott-Thoennes
Yet another instance where the internal encoding leaks. Shouldn't this give |
From @ysthOn Fri, July 17, 2009 9:16 am, Eric Brine wrote:
No, it doesn't leak, quite intentionally. ~ behaves differently based on |
From @ysthOn Fri, July 17, 2009 7:56 pm, Yitzchak Scott-Thoennes wrote:
Gah. I mean "\xff". |
From @dcollinsnI note that this is still open, even though it was declared "not a bug". I'm not nearly smart enough to figure out what should be happening here, can someone help? -- |
From @khwilliamsonOn Mon Jul 18 13:15:54 2016, dcollinsn@gmail.com wrote:
If you run it now, you see that the OP request has been fulfilled. It does not yet throw an exception, but it now does warn, so I'm resolving this ticket. $ blead -lwe 'print ord( (on a 64-bit system; the original was 32-bit) It may not have been a bug, but eventually we decided the design decision was wrong, and we are now in a deprecation cycle to forbid this, as the OP requested. -- |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63574 (status was 'resolved')
Searchable as RT63574$
The text was updated successfully, but these errors were encountered: