Re: snprintf and %hhx format

Keith Marshall <[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Organization MinGW.org Project
Message-ID <[email protected]>
On 06/05/19 03:38, Eli Zaretskii wrote:
>> From: Keith Marshall <[email protected]>
>> Date: Sun, 5 May 2019 23:28:57 +0100
>>
>> FWIW, I can reproduce your results, but I don't see the same effect,
>> if I substitute a (properly adjusted) call to printf(), in place of
>> snprintf().  We may need to tweak <stdio.h>, to use similar call
>> redirection for snprintf(), as is currently used for printf(),
>> fprintf(), and sprintf().
> 
> Thanks.  If you want me to try some patch, I can.

I opened a ticket:
https://osdn.net/projects/mingw/ticket/39224

To that, I've attached two patches: the first (smaller of the two) adds
in-line implementations for snprintf() and vsnprintf(); the larger one
works around the conflicts that the in-line declarations create within
the corresponding external implementations.

These seem to DTRT for me, but if you would like to test further, then
I'd appreciate feed-back.

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJc0FMWAAoJEMCtNsY0flo/f+0QAJPeAs5ZYl+Gb9B5flOxHatR
z0K5oplcBscQ3+dvBftoD6/Pj6dLGQfvJv2/IX6K2PgytNFx346pXaPrW1wCC73a
JyciPpZ9AL0uIFovuREY68uVOMmfafKVLG8h5LV5o0z+l2OtddufLKOxex6eVA5B
Okrq1wCogX7nGv4lGJFcNnaeAPSn87Hblne7N5ianHbrobU3hN4tBXLM7f4qPJda
lxA2H8ohn+yGeYcVk3v1xXsomyGSqTcYtOFqgIBHKD6mjU55uD+J/FCYxFBmJGss
+2hi9LZfWlXsVzP00xKp4A7Z8abQT7mEPpH89wKHfqMa2zSpaLjvzR5puQNKgZnJ
GMCPUM1v7ze2GZQfh1nwdrZYjyQARXzhKFeAup69FSvYH8LK2vIHYstZozeYEJ3r
UrxU7e8YMOOxnD3eD9fNJvNM1DtFN5k6xzQzHQ65Dgp2JUdBb5bCFITcvmr02Lro
6dCYgApR5ouxJe+U8TsET9VunErl0QtRxE1a0kgl4NKXbMKtH9cr9faNq1Fu4ZUL
m0+zaFuHtFlnh/ohBt/s0GsWqow73iZXt0VRix9DD68noBkFSMVnlEQVILnsWs4h
tZG5cWh6d/TPX1mdOiw953vB9+WtBAuvSh/0X9ZXq+a0SFmtgIoawCjeOwilyNRx
wQEAalXJY+yVfO7D5ULS
=EwGc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.