[Bug stdio/6530] *printf() and incomplete multibyte sequences returns -1 bogusly
- To: debian-glibc@lists.debian.org
- Subject: [Bug stdio/6530] *printf() and incomplete multibyte sequences returns -1 bogusly
- From: "jrnieder at gmail dot com" <sourceware-bugzilla@sourceware.org>
- Date: Sat, 23 Jun 2012 21:00:49 +0000
- Message-id: <bug-6530-1917-JhferESPPV@http.sourceware.org/bugzilla/>
- In-reply-to: <bug-6530-1917@http.sourceware.org/bugzilla/>
- References: <bug-6530-1917@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=6530
Jonathan Nieder <jrnieder at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #6474|0 |1
is obsolete| |
--- Comment #23 from Jonathan Nieder <jrnieder at gmail dot com> 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.
You are watching the reporter of the bug.
Reply to: