vsnprintf: glibc and win32 not compatible

Jesse Allen uh_ja at gmx.net
Sun Mar 7 20:32:39 CST 2004


Hi,

Here I have filed a bug on vsnprintf:
http://bugs.winehq.org/show_bug.cgi?id=2075

Basically it says, without repeating, that vsnprintf called from glibc is not 
quite a suitable replacement for an actual msvcrt vsnprintf.  An example is 
given to highlight a specific issue.  I have a question on how should one 
approach fixing this?  I have thought of two different ways:

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.

The issue intrigues me, and I find that it should be resolved at some point.
I'd like to get on the right path, so I'd at least start on something that will
later be accepted.

Thanks,  
Jesse



More information about the wine-devel mailing list