[Rpm-maint] [rpm-software-management/rpm] rpmbuild: default to LANG=C.utf8 ? (Issue #2587)
Neal Gompa
notifications at github.com
Fri Jul 28 04:08:28 UTC 2023
For what it's worth, I think we should _at least_ consider making a build flag to switch RPM to use `C.UTF-8` instead of `C`, and make our CMake default to it for Linux.
>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: `LANG=C` + `LC_CTYPE=UTF-8`. It's not _wrong_, but I don't think anyone else does it.
FreeBSD has had a `C.UTF-8` locale for a while, but with FreeBSD 13, it is now the default: https://github.com/freebsd/freebsd-src/commit/09ef995baf45333d45ab214daf8c03e1a25f8fcc
OpenBSD has supported `C.UTF-8` in some form for at least ten years, and NetBSD's `C` locale is UTF-8 aware (and `C.UTF-8` is an alias to `C` there).
So at least at this point, the only odd duck is macOS.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2587#issuecomment-1654969323
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2587/1654969323 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230727/594205af/attachment-0001.html>
More information about the Rpm-maint
mailing list