[PATCH 1/4] kernel32: Support UTF-7 in MultiByteToWideChar.

Frédéric Delanoy frederic.delanoy at gmail.com
Tue Dec 4 02:56:41 CST 2012


On Tue, Dec 4, 2012 at 5:30 AM, Alex Henrie <alexhenrie24 at gmail.com> wrote:
> 2012/12/2 Dmitry Timoshkov <dmitry at baikal.ru>:
>> Also you probably need to add support for composition/
>> surrogates like other implementations do.
>
> MSDN states:
>
> "Starting with Windows Vista, this function fully conforms with the
> Unicode 4.1 specification for UTF-8 and UTF-16. The function used on
> earlier operating systems encodes or decodes lone surrogate halves or
> mismatched surrogate pairs. Code written in earlier versions of
> Windows that rely on this behavior to encode random non-text binary
> data might run into problems. However, code that uses this function on
> valid UTF-8 strings will behave the same way as on earlier Windows
> operating systems."
> http://msdn.microsoft.com/en-us/library/windows/desktop/dd319072%28v=vs.85%29.aspx
>
> My implementation is modeled after Windows XP (Wine's default target
> Windows version), which encodes and decodes arbitrary character
> sequences without normalization. I saw that my submission has already
> been marked "rejected"--was this why?
>
> -Alex

The above MSDN comment indicates pre-Vista versions are buggy, so it's
probably not a good idea to match that behaviour.

But to know the reason your patch was reject, you should ask the
maintainer (Alexandre Julliard)

Frédéric



More information about the wine-devel mailing list