RFC Errata
RFC 4042, "UTF-9 and UTF-18 Efficient Transformation Formats of Unicode", April 2005
Source of RFC: INDEPENDENT
Errata ID: 8325
Status: Reported
Type: Technical
Publication Format(s) : TEXT
Reported By: Kang-Che Sung
Date Reported: 2025-03-10
Section 5.2 says:
UINT9 *UCS4_to_UTF9 (UINT9 *utf9P,UINT31 ucs4) { if (ucs4 > 0x100) { if (ucs4 > 0x10000) { if (ucs4 > 0x1000000) /* ... */
It should say:
UINT9 *UCS4_to_UTF9 (UINT9 *utf9P,UINT31 ucs4) { if (ucs4 >= 0x100) { if (ucs4 >= 0x10000) { if (ucs4 >= 0x1000000) /* ... */
Notes:
Errors in the conditionals in the C code.