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

Corinna Vinschen corinna-cygwin@cygwin.com
Wed May 13 16:45:00 GMT 2009


On May 14 01:03, IWAMURO Motonori wrote:
> Hi.
> 
> My idea is as follows:
> 
> 1)  separate mbtowc/wctomb function entries to library usage and
> system usage. (__mbtowc/__wctomb & __sys_mbtowc/__sys_wctomb)
> 
> 2) If call setlocale(LC_CTYPE) by locale != "C", then lib == sys.
> 
> 3) If call setlocale(LC_CTYPE) by locale == "C", then sys is set by
> LC_ALL/LC_CTYPE/LANG. If LC_ALL/LC_CTYPE/LANG are not set, use UTF-8
> converter.

That's basically how my patch works.

> Cygwin startup call setlocale(LC_CTYPE, "C") at winsup/cygwin/dcrt0.cc.

Yes, it does already.

> I am writing this patch and test code now.

Btw., if you plan to write more and bigger patches for Cygwin, it would
be necessary to sign a copyright assignment form.  That's explained on
http://cygwin.com/contrib.html.


Corinna

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

--
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/



More information about the Cygwin mailing list