API request: export internal_setlocale

Andy Koppe andy.koppe@gmail.com
Tue Feb 9 07:30:00 GMT 2010

Corinna Vinschen:
> I can add that as cygwin_internal(CW_INT_SETLOCALE), that's not a big
> problem.

Thanks very much for implementing that.

> However, are you aware that this might result in weird
> problems?

Ah yes, I seem to remember a rather exhaustive (and exhausting)
discussion on that. ;)

> Names of files (objects in general) which are already open in
> the application will potentially be using the wrong encoding afterwards.

But file descriptors returned by open() should be fine, right?

> If the application uses only ASCII chars up to the point it calls
> cygwin_internal(CW_INT_SETLOCALE) that shouldn't matter, but I don't
> give any guarantees that this will work as expected.


Thanks again,

More information about the Cygwin-developers mailing list