From: SourceForge.net <no...@so...> - 2008-05-30 02:00:54
|
Bugs item #1978641, was opened at 2008-05-29 18:56 Message generated for change (Comment added) made by caryr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1978641&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mingw runtime Group: IINR - Include In Next Release Status: Open Resolution: None Priority: 5 Private: No Submitted By: Cary R. (caryr) Assigned to: Nobody/Anonymous (nobody) Summary: (v)snprintf problems with %p, %f /e/g and minus infinity Initial Comment: The attached programs demonstrate three problems in the (v)snprintf routines. First %p uses p as the second digit and displays as lower case. Other printf routines have a 0 for the second digit and display as upper case. This causes problems when you are using the address as the object identity. See the snprintf code for a complete example. Next when using the %*.* syntax for %f the output is completely wrong. For %e and %g the output has something that looks correct. The field width and precision are given as -1, -1. This should read as a left justified minimum field width of 1 and default precision. The last problem is that minus infinity is displayed as positive infinity. It would also be nice if NaN and infinity were displayed using the more standard nan and inf instead of NaN and Infinity. This allows automatic comparisons against the output from other machines. ---------------------------------------------------------------------- >Comment By: Cary R. (caryr) Date: 2008-05-29 19:00 Message: Logged In: YES user_id=1651735 Originator: YES I forgot to mention this is with the 3.14 runtime and a current setup. ---------------------------------------------------------------------- Comment By: Cary R. (caryr) Date: 2008-05-29 18:56 Message: Logged In: YES user_id=1651735 Originator: YES File Added: vsnprintf-percent-f.c ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1978641&group_id=2435 |