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


2009/5/15 Corinna Vinschen <corinna-cygwin@cygwin.com>:
> Here's one problem. ?What if an application uses setenv("LANG", ...)?

Oh. Hmmm, I think that anything should not occur.

> Do you want Cygwin to intercept all calls to setenv() to check for
> setting $LC_ALL/LC_CTYPE/LANG?

No. I think that only setlocale() has to do the check.
The reason:
- setlocale(LC_CTYPE, "C") is called from Cygwin startup.
- The following code become valid.
setenv("LANG", "...");
setlocale(LC_ALL, "");
-- 
IWAMURO Motnori <http://vmi.jp/>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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