* [Bug localedata/16298] sprintf %s in a UTF-locale skips over invalid UTF-8
2013-12-06 21:35 [Bug localedata/16298] New: sprintf %s in a UTF-locale skips over invalid UTF-8 khw at cpan dot org
@ 2013-12-06 21:35 ` khw at cpan dot org
2013-12-06 21:36 ` bugdal at aerifal dot cx
2013-12-08 2:08 ` schwab@linux-m68k.org
2 siblings, 0 replies; 4+ messages in thread
From: khw at cpan dot org @ 2013-12-06 21:35 UTC (permalink / raw)
To: libc-locales
https://sourceware.org/bugzilla/show_bug.cgi?id=16298
--- Comment #1 from Karl Williamson <khw at cpan dot org> ---
Oops. I meant to say that sprintf silently skips any operand being formatted
under %s when that operand is not well-formed UTF-8.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug localedata/16298] New: sprintf %s in a UTF-locale skips over invalid UTF-8
@ 2013-12-06 21:35 khw at cpan dot org
2013-12-06 21:35 ` [Bug localedata/16298] " khw at cpan dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: khw at cpan dot org @ 2013-12-06 21:35 UTC (permalink / raw)
To: libc-locales
https://sourceware.org/bugzilla/show_bug.cgi?id=16298
Bug ID: 16298
Summary: sprintf %s in a UTF-locale skips over invalid UTF-8
Product: glibc
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: localedata
Assignee: unassigned at sourceware dot org
Reporter: khw at cpan dot org
CC: libc-locales at sourceware dot org
sprintf silently skips any operand being formatted with %s when the underlying
locale is UTF-8. Not all strings have to be UTF-8 in such a locale, so this
behavior is unwarranted. Even if it were, a UNICODE REPLACEMENT CHARACTER
should be output instead of silently skipping. Some more details are at
http://perl5.git.perl.org/perl.git/commit/9c7618beec18b3be96ea929c073bb3a5beed04ce
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug localedata/16298] sprintf %s in a UTF-locale skips over invalid UTF-8
2013-12-06 21:35 [Bug localedata/16298] New: sprintf %s in a UTF-locale skips over invalid UTF-8 khw at cpan dot org
2013-12-06 21:35 ` [Bug localedata/16298] " khw at cpan dot org
@ 2013-12-06 21:36 ` bugdal at aerifal dot cx
2013-12-08 2:08 ` schwab@linux-m68k.org
2 siblings, 0 replies; 4+ messages in thread
From: bugdal at aerifal dot cx @ 2013-12-06 21:36 UTC (permalink / raw)
To: libc-locales
https://sourceware.org/bugzilla/show_bug.cgi?id=16298
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
Please produce a minimal test case demonstrating the problem; otherwise this
should be marked as invalid. A similar problem USED TO exist for %s format
specifiers with a precision specified (e.g. %.10s) but it was fixed sometime in
the past 2 years. I have never heard of such a problem existing with plain %s
and I suspect the perl commit message you linked to is just wrong.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug localedata/16298] sprintf %s in a UTF-locale skips over invalid UTF-8
2013-12-06 21:35 [Bug localedata/16298] New: sprintf %s in a UTF-locale skips over invalid UTF-8 khw at cpan dot org
2013-12-06 21:35 ` [Bug localedata/16298] " khw at cpan dot org
2013-12-06 21:36 ` bugdal at aerifal dot cx
@ 2013-12-08 2:08 ` schwab@linux-m68k.org
2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2013-12-08 2:08 UTC (permalink / raw)
To: libc-locales
https://sourceware.org/bugzilla/show_bug.cgi?id=16298
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
This has been fixed in 2.17.
*** This bug has been marked as a duplicate of bug 6530 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-08 2:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-06 21:35 [Bug localedata/16298] New: sprintf %s in a UTF-locale skips over invalid UTF-8 khw at cpan dot org
2013-12-06 21:35 ` [Bug localedata/16298] " khw at cpan dot org
2013-12-06 21:36 ` bugdal at aerifal dot cx
2013-12-08 2:08 ` schwab@linux-m68k.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).