-
Notifications
You must be signed in to change notification settings - Fork 359
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
rpmbuild: default to LANG=C.utf8 ? #2587
Comments
For what it's worth, I think we should at least consider making a build flag to switch RPM to use From my research, it seems that Darwin/macOS does the "interesting" thing of overlaying UTF-8 support to the C locale by doing the following combination: FreeBSD has had a OpenBSD has supported So at least at this point, the only odd duck is macOS. |
The current rpm version doesn't build on MacOS to begin with according to #2222, so I don't think that should be a consideration here. |
We shouldn't make the problem worse, and there are plenty of people using RPM on macOS for various reasons. We will have support for it one way or another. |
Please default to |
Mostly everything around us is UTF-8 these days, we need to get on with the times. Especially now that glibc >= 2.35 finally supports it too. Attempt to detect C.UTF-8 availability in cmake and prefer when available, fall back to C when not. Fixes: rpm-software-management#2587
Mostly everything around us is UTF-8 these days, we need to get on with the times. Especially now that glibc >= 2.35 finally supports it too. Default to C.UTF-8 but allow disabling it via cmake option to fallback to the traditional C locale instead. Fixes: rpm-software-management#2587
Mostly everything around us is UTF-8 these days, we need to get on with the times. Especially now that glibc >= 2.35 finally supports it too. Default to C.UTF-8 but allow disabling it via cmake option to fallback to the traditional C locale instead. Fixes: #2587
Thank you, great news! |
Mostly everything around us is UTF-8 these days, we need to get on with the times. Especially now that glibc >= 2.35 finally supports it too. Default to C.UTF-8 but allow disabling it via cmake option to fallback to the traditional C locale instead. Fixes: rpm-software-management#2587 (cherry picked from commit 3be76d7)
Mostly everything around us is UTF-8 these days, we need to get on with the times. Especially now that glibc >= 2.35 finally supports it too. Default to C.UTF-8 but allow disabling it via cmake option to fallback to the traditional C locale instead. Fixes: rpm-software-management#2587 (cherry picked from commit 3be76d7)
It is not unusual for software to require UTF-8 encoding to build these days.
It seems rpmbuild still defaults to LANG=C nowadays.
I think most platforms support LANG=C.UTF-8 now, so could the default be changed?
At least for platforms like Linux where it is available?
For example I think mock already defaults to C.utf8 for quite some time.
The text was updated successfully, but these errors were encountered: