This is the mail archive of the
mailing list for the Cygwin project.
Re: API request: export internal_setlocale
> I can add that as cygwin_internal(CW_INT_SETLOCALE), that's not a big
Thanks very much for implementing that.
> However, are you aware that this might result in weird
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.