This is the mail archive of the cygwin-patches@cygwin.com 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: UTF8 patch


> >This patch adds UTF8 support to Cygwin. It's a quick hack, so may not be
> >complete or perfect.
>
> Is there any way that this could be done with wrapper functions for things
> like CreateFile?  I would rather make this change as unintrusive as
possible.
yep, this sounds like a good idea. only problem is it adds a bit of overhead
if you call more than one wrapper from the same function because it would be
hard to store the converted value between calls and hence the conversion
would be done more than once.
Someone else suggested adding support for any arbitary codepage. I thought
about this and decided it wouldn't work, since the unicode->codepage
function would not necessarily be reversible. Hence some names would get
mangled, others would be inaccessible, etc. If I can solve this problem
somehow, however, then this would be a good idea.

Chris




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