Re: [HIGH] STR #3436: use of isspace(), ispunct(), and others must correctly test unicode characters
Manolo Gouy
May 15, 2024
[STR Closed w/Resolution]
Link: https://www.fltk.org/str.php?L3436
Version: 1.4-current
Fix Version: 1.4.0
Git Commit: 9df6dc2
Assigned To: AlbrechtS
This was done :
1. Check if every usage of these functions is on the correct parameter
types and that the return value is properly tested.
This was also done even if I believe it's not necessary because
UTF8 makes that every byte of the encoding of a non-ascii character is
non-ascii :
2. Functions like 'isupper()' should verify not to test parts (single
bytes) of UTF-8 sequences.
Only 2 changes were found necessary and committed at 9df6dc2.
Link: https://www.fltk.org/str.php?L3436
Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.