HomeFreeBSD

localedef: Fix a wchar_t comparison

Description

localedef: Fix a wchar_t comparison

The intent here is to characterize wide characters which fit in a single
byte. When wchar_t is signed, this comparison is insufficient.

On systems with signed wchar_t, of the files in /usr/share/locale this
only affects zh_CN.GB18030/LC_COLLATE.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D50757

Details

Provenance
markjAuthored on Jun 20 2025, 4:10 PM
Differential Revision
D50757: localedef: Fix a wchar_t comparison
Parents
rG770fba248daf: localedef: Use consistent sorting order
Branches
Unknown
Tags
Unknown