[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Internal CP to Unicode and vice versa conversions
From:       Alexandre Julliard <julliard () winehq ! com>
Date:       2000-02-27 1:54:50
[Download RAW message or body]

"Dmitry Timoshkov" <dmitry@sloboda.ru> writes:

> ChangeLog:
>     Implementation of RtlUnicodeToMultiByteN, RtlUnicodeToOemN,
> RtlOemToUnicodeN, RtlMultiByteToUnicodeN using internal tables.

I don't think building the tables at run-time is a very good idea. It
eats lots of memory, and the way you did it, it is impossible to have
two Unicode chars map to the same ASCII value (not to mention that it
doesn't support DBCS). I'd suggest building the tables at compile time
from some kind of definition file, and store them in separate files
that we can mmap on demand.

-- 
Alexandre Julliard
julliard@winehq.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic