API request: export internal_setlocale

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Feb 9 08:35:00 GMT 2010

On Feb  9 07:30, Andy Koppe wrote:
> Corinna Vinschen:
> > 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?

Yes, the descriptors should be fine.  The problem is that later Cygwin
calls on the descriptor could fail, if the descriptor refers to a file
with non-ASCII chars and the function called on the descriptor requires
the name of the file to function.

A good example are all `at' functions (openat, fstatat, symlinkat).

Probably needless to say, but... P T C.

> Thanks again,
> Andy

No worries,

Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-developers mailing list