-
Notifications
You must be signed in to change notification settings - Fork 601
Turn off POSIX 2008 locales on AIX #23829
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
Conversation
|
Possibly we should just add a proper configure flag for this? |
|
I don't understand @Leont 's comment. Please clarify |
A So aix.sh would do something like: which lets people test with it enabled. I don't think it's reasonable to have But even without detection it would be a bigger change than this one. |
|
In some previous releases, I had a test i Configure to see if something about locales worked. The simplistic test ruled out egregious violations, but more subtle bugs in the platform's implementation went undetected. It was better to take that out and put it in the hints rather than misleadingly say it worked; which led to barking up the wrong tree during debugging. |
|
yeah, I'm not suggesting that sort of probe, just that it has it's own Configure id that defaults |
Yeah, I don't think my suggestion has to stop us from fixing locales on AIX first, but this way of wiring things is suboptimal for our users IMHO. Toggling it uses a surprising mechanism, and it isn't introspectable through |
Well, default to And arguably a |
|
I still don't understand. The way it current works is that Configure has separate probes for each of newlocale, uselocale, duplocale, freelocale and LC_ALL_MASK. If and only if it finds all of them and neither NO_LOCALE nor NO_POSIX_2008_LOCALE are present does it enable using POSIX 2008 locales. I don't see what's wrong with that. We do have platforms where one or another isn't found, but others are. We need all of them for this to work. In AIX, since we know duplocale doesn't work, we could turn just that off, and the 2008 locales would not be selected, but this seemed clearer. |
Yes that is excellent.
I think I see your point. It probably doesn't make sense to have both those specific *locale checks and a useposix2008locale on top; defining the latter is senseless if any of the functions are missing.
To me that would make more sense to be honest. It points at the actual problem, instead of the consequence of the problem. |
Fixes Perl#23825 From the discussion in that ticket, it appears that the problem is the OS.
|
I changed to undef duplocale. I think this patch should go in 5.42.1 |
mauke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me, although I don't have an AIX system to test on.
Fixes #23825
From the discussion in that ticket, it appears that the problem is the OS.