UTF8 patch

Chris January chris@atomice.net
Wed Jul 3 09:36:00 GMT 2002


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





More information about the Cygwin-patches mailing list