mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
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
This commit is contained in:
parent
770fba248d
commit
a37bc4cb8d
1 changed files with 1 additions and 1 deletions
|
|
@ -1273,7 +1273,7 @@ dump_collate(void)
|
|||
RB_FOREACH(cc, collchars, &collchars) {
|
||||
int undef = 0;
|
||||
/* we already gathered those */
|
||||
if (cc->wc <= UCHAR_MAX)
|
||||
if ((uint32_t)cc->wc <= UCHAR_MAX)
|
||||
continue;
|
||||
for (j = 0; j < NUM_WT; j++) {
|
||||
if ((pri = get_weight(cc->ref[j], j)) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue