-
Notifications
You must be signed in to change notification settings - Fork 454
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
Fix build and errno check on musl libc #1678
Fix build and errno check on musl libc #1678
Conversation
In the 'from_chars' function, it's first checked if errno != 0 and immediately returns with std::errc::result_out_of_range aka ERANGE. Please refer issue [1624] (AcademySoftwareFoundation#1624) The function 'strtol_l' is not available on non GLIBC systems hence on other libc use the alternative 'strtol' function. Signed-off-by: listout <[email protected]>
|
Thanks for the contribution @listout. Out of curiosity, and sorry for being dumb here, why is returning the wrong error code problematic? Using |
I'm not too sure either, in the linked issue, you see that someone mentioned that a test case was failing and some other detail
As for
It could be because of musl having only one locale Sorry @remia for not having any concrete answers, I too don't know much about the issue itself. Picked it up from another issue and compiling opencolorio on musl |
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.
Tested on Docker alpine/latest and the patch seem to fix both build and unit test so I am going to approve, thanks.
Looks good to me too. I am going to approve it. |
In the 'from_chars' function, it's first checked if errno != 0 and
immediately returns with std::errc::result_out_of_range aka ERANGE.
Please refer issue [1624] (#1624)
The function 'strtol_l' is not available on non GLIBC systems hence on
other libc use the alternative 'strtol' function.
Signed-off-by: listout [email protected]