Re: [PATCH] read: unsigned char delim issues

2024-08-14 Thread Chet Ramey
On 8/13/24 3:00 PM, Grisha Levit wrote: The new read_mbchar code is missing an (unsigned char) cast, causing an invalid continuation byte >0x7F to fail to be recognized as a delimiter on platforms where char is signed. $ printf '\317_' | { read -d _; echo "${REPLY@Q}"; } $'\317' $

[PATCH] read: unsigned char delim issues

2024-08-13 Thread Grisha Levit
The new read_mbchar code is missing an (unsigned char) cast, causing an invalid continuation byte >0x7F to fail to be recognized as a delimiter on platforms where char is signed. $ printf '\317_' | { read -d _; echo "${REPLY@Q}"; } $'\317' $ printf '\317\360_' | { read -d $'\360'; echo