projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix swprintf("%#.0o")
[libc-test]
/
src
/
functional
/
swprintf.c
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 " },
{ 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"%.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 */
{ L"%#.0x", 0, L"" },
/* hex: test alt form and case */