Rich Felker wrote: > I'm not sure what you mean. For a Latin-1 locale there is no > difference, but if the locale is a different legacy locale, the > wchar_t value (Unicode scalar value on systems with __STDC_ISO_10646__ > defined) needs to be returned. If you're doubtful about the intent of > the standard, why not file a request for interpretation?
I'm not doubtful about the standard's intent. When the user has not chosen to use a locale that contains multibyte characters, not only should bash not second-guess the user by returning a multibyte character, functions such as mbrtowc or mblen/mbrlen will not return "multibyte" values (e.g., mbrlen will return `1' and mbrtowc will return `-61' -- converted to 195, since it's unsigned -- as its wchar value while converting 1 character in your example). Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/