Re: ctype.h functions on bytes 0x80..0xFF

2023-05-29 Thread Chet Ramey
On 5/27/23 11:57 PM, Grisha Levit wrote: The below seems like a cheap fix for UTF-8 locales. Since Bash falls back to using the single-byte glob matching functions when presented with invalid multibyte strings, this patch makes the glob code avoid calling the ctype functions or strcoll when handl

Re: ctype.h functions on bytes 0x80..0xFF

2023-05-27 Thread Grisha Levit
The below seems like a cheap fix for UTF-8 locales. Since Bash falls back to using the single-byte glob matching functions when presented with invalid multibyte strings, this patch makes the glob code avoid calling the ctype functions or strcoll when handling individual bytes >0x7F (in a UTF-8 loca