Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2022-01-13 Thread Pali Rohár
On Tuesday 11 January 2022 11:40:45 Martin Storsjö wrote: > On Mon, 10 Jan 2022, LIU Hao wrote: > > > 在 2022-01-01 05:54, Pali Rohár 写道: > > > > > > Well, if you want from me any improvements in this patch, I can do it. > > > Just let me know what is needed to fix/change. > > > > > > > However,

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2022-01-11 Thread Martin Storsjö
On Tue, 11 Jan 2022, Pali Rohár wrote: On Tuesday 11 January 2022 11:40:45 Martin Storsjö wrote: On Mon, 10 Jan 2022, LIU Hao wrote: 在 2022-01-01 05:54, Pali Rohár 写道: Well, if you want from me any improvements in this patch, I can do it. Just let me know what is needed to fix/change.

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2022-01-11 Thread Martin Storsjö
On Mon, 10 Jan 2022, LIU Hao wrote: 在 2022-01-01 05:54, Pali Rohár 写道: Well, if you want from me any improvements in this patch, I can do it. Just let me know what is needed to fix/change. However, cleaning the code from such workarounds seems tempting. I wonder if there is a real use case

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2022-01-10 Thread LIU Hao
在 2022-01-01 05:54, Pali Rohár 写道: Well, if you want from me any improvements in this patch, I can do it. Just let me know what is needed to fix/change. However, cleaning the code from such workarounds seems tempting. I wonder if there is a real use case for this or is it just an experiment

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2022-01-01 Thread Pali Rohár
On Friday 31 December 2021 00:30:37 Jacek Caban wrote: > On 12/29/21 16:52, Martin Storsjö wrote: > > On Wed, 29 Dec 2021, LIU Hao wrote: > > > > > 在 2021-12-23 22:20, Pali Rohár 写道: > > > > Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() > > > > function. Therefore usage of

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2022-01-01 Thread Pali Rohár
On Wednesday 29 December 2021 22:35:08 LIU Hao wrote: > 在 2021-12-23 22:20, Pali Rohár 写道: > > Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() > > function. Therefore usage of snprintf() with this DLL library cause > > application crash. Add simple fallback implementation of

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2021-12-30 Thread Jacek Caban
On 12/29/21 16:52, Martin Storsjö wrote: On Wed, 29 Dec 2021, LIU Hao wrote: 在 2021-12-23 22:20, Pali Rohár 写道: Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() function. Therefore usage of snprintf() with this DLL library cause application crash. Add simple fallback

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2021-12-29 Thread Martin Storsjö
On Wed, 29 Dec 2021, LIU Hao wrote: 在 2021-12-23 22:20, Pali Rohár 写道: Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() function. Therefore usage of snprintf() with this DLL library cause application crash. Add simple fallback implementation of _vscprintf() just for

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2021-12-29 Thread LIU Hao
在 2021-12-23 22:20, Pali Rohár 写道: Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() function. Therefore usage of snprintf() with this DLL library cause application crash. Add simple fallback implementation of _vscprintf() just for __ms_vsnprintf() to allow usage of snprintf()

Re: [Mingw-w64-public] [PATCH] crt: Add fallback _vscprintf_emu code for __ms_vsnprintf()

2021-12-27 Thread Biswapriyo Nath
_vscprintf is exported from msvcrt.dll in Windows 10. Should there be a msvcrt version check in the function definition? Where can I get original MSVC 6.0 msvcrt.dll? ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net