"C" character set (again)

Dave Korn dave.korn.cygwin@googlemail.com
Thu Jan 7 20:56:00 GMT 2010


Andy Koppe wrote:

> There's an important distinction here between the C locale and the
> defaut locale. The C locale is what you get if you don't call
> setlocale at all, whereas the default locale is what you get if you
> call setlocale(LC_FOO, "") and the relevant environment variables are
> all unset or empty.

  Ah, hang on then, I didn't get that.  In that case it makes sense for the
default locale to be utf8 now in order to help shake out bugs in i18n usage in
stuff that is basically i18n-aware, and would only make sense to switch the c
locale maybe some years in the future when it would be desirable to shake out
the last few entirely-non-locale-aware-at-all bits of code.  So yeah; let's
revert it.

    cheers,
      DaveK



More information about the Cygwin-developers mailing list