From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12390 invoked by alias); 23 Jun 2012 21:01:29 -0000 Received: (qmail 12381 invoked by uid 22791); 23 Jun 2012 21:01:28 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 23 Jun 2012 21:01:17 +0000 From: "jrnieder at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug stdio/6530] *printf() and incomplete multibyte sequences returns -1 bogusly Date: Sat, 23 Jun 2012 21:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jrnieder at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.17 X-Bugzilla-Changed-Fields: Attachment #6474 is obsolete Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00233.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=6530 Jonathan Nieder changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #6474|0 |1 is obsolete| | --- Comment #23 from Jonathan Nieder 2012-06-23 21:00:49 UTC --- Created attachment 6475 --> http://sourceware.org/bugzilla/attachment.cgi?id=6475 Test swprintf's handling of incomplete multibyte characters (In reply to comment #22) > That's because you made the classic printf mistake of confusing width and > precision. > > Try L"%.3s". Good catch, thanks. Here's a corrected test, which works fine. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.