X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Ffunctional%2Fswprintf.c;h=243fae8f9abcd2d6eaf1dc140070a1c472c0b3a5;hp=2abcb7c9b28d31ed429f188da1e67706c816a841;hb=bd8a983747268783c1ab911667ae2f68a15e87b8;hpb=83e2fb402916e68f213d7809e7fb1c82fbf9294a diff --git a/src/functional/swprintf.c b/src/functional/swprintf.c index 2abcb7c..243fae8 100644 --- 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 */