From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7128 Path: news.gmane.org!not-for-mail From: Sergey Dmitrouk Newsgroups: gmane.linux.lib.musl.general Subject: [libc-test][PATCH] Missing fix for swprintf("%#.0") Date: Wed, 4 Mar 2015 18:38:35 +0200 Message-ID: <20150304163835.GA23801@zx-spectrum.accesssoftek.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF" X-Trace: ger.gmane.org 1425487122 7572 80.91.229.3 (4 Mar 2015 16:38:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 16:38:42 +0000 (UTC) To: Original-X-From: musl-return-7141-gllmg-musl=m.gmane.org@lists.openwall.com Wed Mar 04 17:38:41 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YTCJk-000281-5V for gllmg-musl@m.gmane.org; Wed, 04 Mar 2015 17:38:40 +0100 Original-Received: (qmail 28466 invoked by uid 550); 4 Mar 2015 16:38:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28431 invoked from network); 4 Mar 2015 16:38:33 -0000 Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:7128 Archived-At: --h31gzZEtNLTqOjlF Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Hi, There was a fix for snprintf("%#.0o") some time ago, but swprintf() wasn't updated there. Regards, Sergey --h31gzZEtNLTqOjlF Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="libc-test-fix-swprintf-and-alt-o.patch" 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 */ --h31gzZEtNLTqOjlF--