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
Numeric comparison $! == EXXX does expensive locale operations #7345
Comments
From @jlokierCreated by @jlokierWhen I evaluate $! in a numeric context in order to do a simple Specifically, in code which does this: $n = sysread ($socket, $buffer, $length, $offset); The comparison $! == EAGAIN should be fast. However, strace shows I guess that is because evaluating $! looks up the text corresponding Subsequent uses of $! don't show anything in strace, however this is The obvious fix is to change $! so it doesn't do a string operation A workaround is to set the locale to the C locale, but that has -- Jamie Perl Info
|
From @iabynOn Sun, Jun 06, 2004 at 10:48:02PM -0000, Jamie Lokier wrote:
I can't reproduce this. Do you have a small standalone script that use Errno qw(EAGAIN); $ LANG=en_GB.UTF-8 strace perl580 /tmp/p -- |
The RT System itself - Status changed from 'new' to 'open' |
From @jlokierDave Mitchell via RT wrote:
Put "close BAD;" before the print statement. It'll cause an EBADF error. -- Jamie |
From @gbarrOn 9 Jun 2004, at 00:44, Dave Mitchell wrote:
I can, but with $! = 1; The reason for this is that when the magic is called to populate the SV Graham. |
@rgs - Status changed from 'open' to 'resolved' |
From @jlokierRafael Garcia-Suarez via RT wrote:
How has it been resolved? It's been confirmed, and the cause isolated - but that was already Doesn't resolved imply it's either fixed or won't be fixed? I didn't see anything attached to this bug which indicates either. Thanks, |
Migrated from rt.perl.org#30076 (status was 'resolved')
Searchable as RT30076$
The text was updated successfully, but these errors were encountered: