* [libc-test][PATCH] Missing fix for swprintf("%#.0")
@ 2015-03-04 16:38 Sergey Dmitrouk
2015-03-04 22:31 ` Szabolcs Nagy
0 siblings, 1 reply; 2+ messages in thread
From: Sergey Dmitrouk @ 2015-03-04 16:38 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 112 bytes --]
Hi,
There was a fix for snprintf("%#.0o") some time ago, but swprintf()
wasn't updated there.
Regards,
Sergey
[-- Attachment #2: libc-test-fix-swprintf-and-alt-o.patch --]
[-- Type: text/plain, Size: 464 bytes --]
src/functional/swprintf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/functional/swprintf.c b/src/functional/swprintf.c
index 2abcb7c..07b25e0 100644
--- a/src/functional/swprintf.c
+++ b/src/functional/swprintf.c
@@ -41,7 +41,7 @@ static const struct {
{ L"%.0d", 0, L"" },
{ L"%.0o", 0, L"" },
{ L"%#.0d", 0, L"" },
- { L"%#.0o", 0, L"" },
+ { L"%#.0o", 0, L"0" },
{ L"%#.0x", 0, L"" },
/* hex: test alt form and case */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [libc-test][PATCH] Missing fix for swprintf("%#.0")
2015-03-04 16:38 [libc-test][PATCH] Missing fix for swprintf("%#.0") Sergey Dmitrouk
@ 2015-03-04 22:31 ` Szabolcs Nagy
0 siblings, 0 replies; 2+ messages in thread
From: Szabolcs Nagy @ 2015-03-04 22:31 UTC (permalink / raw)
To: musl
* Sergey Dmitrouk <sdmitrouk@accesssoftek.com> [2015-03-04 18:38:35 +0200]:
> There was a fix for snprintf("%#.0o") some time ago, but swprintf()
> wasn't updated there.
thanks committed with the comment fixed as well
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-04 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 16:38 [libc-test][PATCH] Missing fix for swprintf("%#.0") Sergey Dmitrouk
2015-03-04 22:31 ` Szabolcs Nagy
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).