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

IWAMURO Motonori deenheart@gmail.com
Thu May 14 12:39:00 GMT 2009


2009/5/14 Corinna Vinschen <corinna-cygwin@cygwin.com>:
>> > Should the following part not be modified?
>> >
>> > winsup/cygwin/fhandler_console.cc:
>> > > dev_state->con_mbtowc = __mbtowc;
>> > > dev_state->con_wctomb = __wctomb;
>>
>> I'd rather not.  It only affects the console and if LANG=C I'd rather
>> see the single bytes which make up the path instead of the corresponding
>> UTF-8 character.
>
> Hm, maybe I misunderstood.  In which manner should this be modifed?

I think:

dev_state->con_mbtowc = __mbtowc == __ascii_mbtowc ? __utf8_mbtowc : __mbtowc;
dev_state->con_wctomb = __wctomb == __ascii_wctomb ? __utf8_wctomb : __wctomb;
-- 
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/



More information about the Cygwin mailing list