[email protected] (Karl Berry) writes: > All I can think of to base the default on the current locale, because > that's the only information we've got about what the user desires. > E.g., if the locale is "C" (or, equivalently, "POSIX", of course), the > target should be plain 7-bit ASCII. If the locale is *.UTF-8, then the > target should be UTF-8. Etc. (I don't know all the locale names used > in this context, and can't find anything that seems like a comprehensive > list, although it must be out there somewhere.)
nl_langinfo(CODESET) returns the name of the locale's character encoding. Andreas. -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
