kern/114578: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE

das at FreeBSD.org das at FreeBSD.org
Sat Feb 7 06:09:32 PST 2009


Synopsis: [libc] wide character printing using swprintf(dst, n, "%ls", txt) fails depending on LC_CTYPE

State-Changed-From-To: open->suspended
State-Changed-By: das
State-Changed-When: Sat Feb 7 14:04:44 UTC 2009
State-Changed-Why: 
suspended awaiting patches


Class-Changed-From-To: sw-bug->change-request
Class-Changed-By: das
Class-Changed-When: Sat Feb 7 14:04:44 UTC 2009
Class-Changed-Why: 
The present implementation of swprintf() could be much better, and the
submitter is rightly offended, but this doesn't seem to be a bug.


Responsible-Changed-From-To: freebsd-standards->freebsd-bugs
Responsible-Changed-By: das
Responsible-Changed-When: Sat Feb 7 14:04:44 UTC 2009
Responsible-Changed-Why: 
Reclassify this as a general bug. Although swprintf's behavior of
converting from wide characters to multibyte representations and back
again appears not to be a standards violation, a better implementation
would avoid the extra work.

http://www.freebsd.org/cgi/query-pr.cgi?pr=114578


More information about the freebsd-bugs mailing list