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
locale and LC_ALL on NetBSD #11550
Comments
From msporleder@gmail.comCreated by msporleder@gmail.comSetting LC_ALL causes the locale warning. My system has locale files d_setlocale='define'; ~ $ export LC_ALL=fr_FR.ISO8859-1~ $ perl -e '1;' ~ $ locale -a|grep fr 22799 1 perl CALL open(0x7f7fffffc470,0,0x1b6) Perl Info
|
From @tonycozOn Wed, Aug 03, 2011 at 06:54:50PM -0700, msporleder@gmail.com (via RT) wrote:
From what I can see in reading locale.c, perl attempts to setlocale() deimos$ uname -prs Setting only the categories you need works (as long as they aren't deimos$ LC_NUMERIC=fr_FR.ISO8859-1 LC_CTYPE=fr_FR.ISO8859-1 ./setlocale The source for the setlocale tool: deimos$ cat setlocale.c #define entry(s) { s, #s } struct locale_category { const int category_count = sizeof(categories) / sizeof(*categories); int main() { return 0; |
The RT System itself - Status changed from 'new' to 'open' |
From @khwilliamsonOn Thu Aug 04 03:57:22 2011, tonyc wrote:
We can't fix the underlying OS. But there is an undocumented compile You can similarly turn off any other individual category. I intend to close this ticket in 30 days unless I hear something to the |
From @khwilliamsonThis is not a bug in Perl, given the C test program that exhibits similar results -- |
@khwilliamson - Status changed from 'open' to 'rejected' |
From @khwilliamsonI'm reopening this ticket because blead now has a fix for this |
@khwilliamson - Status changed from 'rejected' to 'open' |
From @khwilliamsonNetBSD doesn't appear to deal with LC_COLLATE, but it does in fact try to make it appear as if it does, after a fashion. If you try to set LC_COLLATE, it will fail (it might succeed if you set it to POSIX, I haven't tried). But if you set LC_ALL to something, it succeeds and returns that LC_COLLAtE is POSIX. The Perl initialization code used to always try to set LC_COLLATE, but it now doesn't try if setting LC_ALL succeeded. This means that it will not generally fail on initialization on NetBSD. The commit that did this is 7cd8b56 Karl Williamson |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#96240 (status was 'resolved')
Searchable as RT96240$
The text was updated successfully, but these errors were encountered: