projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
83e2fb4
)
fix swprintf("%#.0o")
author
Szabolcs Nagy
<nsz@port70.net>
Wed, 4 Mar 2015 22:28:43 +0000
(23:28 +0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Wed, 4 Mar 2015 22:29:42 +0000
(23:29 +0100)
src/functional/swprintf.c
patch
|
blob
|
history
diff --git
a/src/functional/swprintf.c
b/src/functional/swprintf.c
index
2abcb7c
..
243fae8
100644
(file)
--- a/
src/functional/swprintf.c
+++ b/
src/functional/swprintf.c
@@
-37,11
+37,11
@@
static const struct {
{ L"%0-5d", 12, L"12 " },
{ L"%-05d", 12, L"12 " },
- /* ...explicit precision of 0 shall be no characters. */
+ /* ...explicit precision of 0 shall be no characters
except for alt-octal
. */
{ 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 */