On 16/06/2560 03:11, Chet Ramey wrote: > You still have to look at every character. The world isn't all UTF-8: > there are character sets where multibyte characters include characters > that are valid ascii (including, I suspect, `=').
I think supporting all kinds of other encodings besides UTF-8 is absolutely nuts. You not only have to look at every character, but you first have to decide which encoding you're going to be in, and this might be ambiguous (unless an encoding declaration becomes part of bash). I think the overhead in code size and complexity will be too much. I never thought you were thinking in this direction. I hope other people will chime in about this approach. Peter