This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/6530] *printf() and incomplete multibyte sequences returns -1 bogusly


http://sourceware.org/bugzilla/show_bug.cgi?id=6530

--- Comment #22 from Rich Felker <bugdal at aerifal dot cx> 2012-06-23 20:53:14 UTC ---
That's because you made the classic printf mistake of confusing width and
precision.

Try L"%.3s".

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]