This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: API request: export internal_setlocale
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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat