Skip to content

Fix locale handling in Solaris #23199

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

Merged
merged 1 commit into from
Apr 17, 2025
Merged

Fix locale handling in Solaris #23199

merged 1 commit into from
Apr 17, 2025

Conversation

vlmarek
Copy link
Contributor

@vlmarek vlmarek commented Apr 15, 2025

Solaris setlocale(3C) returns composite locale prefixed by slash. For example "/en_US.UTF-8/C/C/C/C/C". See man page. We must remove it or this function will think that there is additional empty locale at the beginning of the string and the number of detected locales will not match expected LC_ALL_INDEX_.

This is pull request for issue #23195

@mauke
Copy link
Contributor

mauke commented Apr 15, 2025

You should run Porting/updateAUTHORS.pl and commit the results to add yourself to the list of perl authors. That should make the tests pass.

Solaris setlocale(3C) returns composite locale prefixed by slash. For example
"/en_US.UTF-8/C/C/C/C/C". See man page. We must remove it or this
function will think that there is additional empty locale at the
beginning of the string and the number of detected locales will not
match expected LC_ALL_INDEX_.
@vlmarek
Copy link
Contributor Author

vlmarek commented Apr 16, 2025

I have tested it on Solaris with your change just to be sure. All good. And I have updated the AUTHORS file. Thanks !

@khwilliamson khwilliamson merged commit 6f3f92b into Perl:blead Apr 17, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants