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


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