Joe Smith writes: > Cygwin's setlocale function only supports the "C" locale. > I am a bit suprised that ASCII is returned rather than the system's default > encoding. If I understand the situation correctly, you shouldn't be. The C locale is defined to use ASCII.