This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

On May 14 16:42, Corinna Vinschen wrote:
> On May 14 23:06, IWAMURO Motonori wrote:
> > 2009/5/14 Corinna Vinschen <>:
> > > I see a couple of potential problems.
> > 
> > What problems are those?
> I have no example off-hand.  When I thought about it I always got sick
> thinking about scenarios where the library is using, say, UTF-8, and the
> application is using SJIS, and what happens to the filenames in this
> case.  In theory the lib should provide what the application thinks it
> right.

Here's one problem.  What if an application uses setenv("LANG", ...)?
Do you want Cygwin to intercept all calls to setenv() to check for
setting $LC_ALL/LC_CTYPE/LANG?  Right now, the only time these variables
are read by Cygwin is at the start of the first Cygwin process in a
Cygwin process tree.


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

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]