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

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

2023-05-26 Thread Grisha Levit
On Mon, May 1, 2023 at 11:48 AM Chet Ramey wrote: > > (And once we get these issues straightened out, if you look back to your > original example, 0x240 is a blank in my locale, en_US.UTF-8, and will be > removed from the input stream by the parser unless it's quoted.) On at least recent macos ve