Descrepancy between Windows and GLIBC version of [v]snprintf
gehriger at linkcad.com
Wed Nov 26 11:52:51 CST 2003
> -----Original Message-----
> From: Uwe Bonnes [mailto:bon at elektron.ikp.physik.tu-darmstadt.de]
> Sent: Wednesday, November 26, 2003 6:46 PM
> >>>>> "Daniel" == Daniel Gehriger <gehriger at linkcad.com> writes:
> Daniel> Hi, I found a problem with the _snprintf() / _vsnprintf()
> Daniel> Under Windows: 0000000001**** Under Wine: 000000000 When
> Daniel> compiled on Linux: 000000000
> There are more such subtile discrepancies. Only when
> applications rely on
> that, wine should be fixed. Consider rewriting your test for the wine
> regression test suite, comment it with the problem showing
> that problem and
> send a patch.
The symstore.exe tool from the Debugging Tools for Windows fails due to this
error. For now, I patched the symstore.exe to make it work.
I'm not familiar with how the Wine source code is laid out. The solution
would be not to forward these calls to the native library, but provide a
custom implementation, just like the wide-character variants. I can do that,
but I wouldn't know where exactly to add it (user.dll ? msvcrt.dll ? ... ?).
I can write a regression test, though.
More information about the wine-devel