* lib/localeinfo.h: Improve comment. --- ChangeLog | 3 +++ lib/localeinfo.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 61e588a736..924dae9a69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2026-05-05 Paul Eggert <[email protected]> + localeinfo: wbctowc comment + * lib/localeinfo.h: Improve comment. + localeinfo: use countof * lib/localeinfo.c: Include stdcountof.h. Simplify by using countof. diff --git a/lib/localeinfo.h b/lib/localeinfo.h index 3bc84564be..f8b3c970d9 100644 --- a/lib/localeinfo.h +++ b/lib/localeinfo.h @@ -44,8 +44,8 @@ struct localeinfo than one byte. */ signed char sbclen[(unsigned char) -1 + 1]; - /* An array indexed by byte values B that contains the corresponding - 32-bit wide character (if any) for B if sbclen[B] == 1. WEOF means + /* An array indexed by byte values B. If sbclen[B] == 1, + this is the corresponding char32_t value. Otherwise it is WEOF, as the byte is not a valid single-byte character, i.e., sbclen[B] == -1 or -2. */ wint_t sbctowc[(unsigned char) -1 + 1]; -- 2.54.0
