On 6/15/17 9:01 PM, Peter & Kelly Passchier wrote: > 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).
There's already an encoding declaration in bash: setting the locale using the usual set of environment variables. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/