-
Notifications
You must be signed in to change notification settings - Fork 601
Configure: Allow LC_ALL syntax override #23961
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
base: blead
Are you sure you want to change the base?
Conversation
Fixes Perl#22992 The problem here had to do with cross-compilation. There was no way to override Perl's calculation of how LC_ALL is represented. I had not put one in because it is hard to get it right manually. But this doesn't work in cross-compilation; it's better to have a difficult-to-get-right way than no way at all. I don't know where to document this. You need to specify in a hints file: perl_lc_all_separator="correct-value" perl_lc_all_category_positions_init="correct-value"
Add indentation because of the previous commit
|
@andrewmd5 Is this sufficient for your situation; if not what would be helpful? |
|
Thanks for this — I think the approach is right! However, I'm seeing build errors when testing the patch (without my sed replacement workaround). The issue is with The macro expands to just separator = PERL_LC_ALL_SEPARATOR;
separator_len = STRLENs(PERL_LC_ALL_SEPARATOR);I've updated the main repo so you can build and validate locally: https://github.com/6over3/zeroperl The patch should go here: |
|
This worked for me (with the patch unchanged) in the hints file I don't know where to document how to properly use this |
|
I suppose Configure could check that the separator is enclosed in double quotes and complain if it isn't |
Or we should just stringify it in the preprocessor using the |
| esac | ||
| esac | ||
|
|
||
| case "$perl_lc_all_separator$perl_lc_all_category_positions_init" in |
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.
In the commit message:
I... You need to specify in a hints
file:perl_lc_all_separator="correct-value" perl_lc_all_category_positions_init="correct-value"
Can you add a sensible example for "correct-value"?
Fixes #22992
The problem here had to do with cross-compilation. There was no way to override Perl's calculation of how LC_ALL is represented. I had not put one in because it is hard to get it right manually. But this doesn't work in cross-compilation; it's better to have a difficult-to-get-right way than no way at all.
I don't know where to document this. You need to specify in a hints file: