vsnprintf: glibc and win32 not compatible

Alexandre Julliard julliard at winehq.org
Mon Mar 8 12:15:33 CST 2004


Mike Hearn <mh at codeweavers.com> writes:

> On Sun, 07 Mar 2004 19:32:39 -0700, Jesse Allen wrote:
>> 1)  Create our own vsnprintf version from scratch   (fairly difficult)
>> or
>> 2)  Create a wrapper for glibc's vsnprintf that translates win32ish format
>> statements into a glibc friendly one.  (not too bad and smaller patch)  We 
>> could later move in a better or complete version to improve performance.
>
> 3) Copy/paste the glibc version into Wine with appropriate munging and
> start fixing bugs in it.
>
> No clue which is best. Alexandre?

Probably 3), but I don't think you want to start with the glibc code,
it's fairly ugly code, with many dependencies on glibc internals and
gcc-specific things. Hopefully we can find a more portable
implementation somewhere else.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list