Module Name: src Committed By: riastradh Date: Tue Aug 20 20:36:30 UTC 2024
Modified Files: src/lib/libc/locale: c16rtomb.3 c32rtomb.3 c8rtomb.3 Log Message: c8rtomb(3), c16rtomb(3), c32rtomb(3): Fix null string output case. This ignores c8/c16/c32, produces no output anywhere, and just resets ps to the initial conversion state. Also just use 0 in the example, not '\0' or L'\0'. This works for C11, which prefers '\0' and L'\0', for and C23, which introduced the new u8'\0', u'\0' (UTF-16), and U'\0' (UTF-32). To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libc/locale/c16rtomb.3 \ src/lib/libc/locale/c32rtomb.3 cvs rdiff -u -r1.8 -r1.9 src/lib/libc/locale/c8rtomb.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.