msvcrt: Bump MSVCRT_MB_LEN_MAX to 6 and use it in MSVCRT__wctomb_l for default buffer length

Piotr Caban piotr.caban at gmail.com
Thu Jan 29 04:52:23 CST 2015


On 01/28/15 00:25, Orion Poplawski wrote:
> Looks like things are a bit version dependent - It appears that is is 2 for
> Visual Studio .NET 2003, and 5 for later versions:
>
> https://msdn.microsoft.com/en-us/library/296az74e%28v=vs.71%29.aspx
I'm not sure what should be done in this case. I would go with changing 
it to 5 in all headers so applications can use it to allocate buffers. 5 
is big enough to handle all codepages in wine.

> Not sure if I should be producing an updated patch, or if the wine devs can
> take it from here.
It's your patch. It's best if you send it yourself.

Thanks,
Piotr



More information about the wine-devel mailing list