mailing list of musl libc
 help / color / mirror / code / Atom feed
* Wrong wcsnrtombs return value and positive NaNs printing
@ 2014-12-18 17:20 Oleg Ranevskyy
  2014-12-18 19:12 ` Rich Felker
  2014-12-18 19:13 ` Szabolcs Nagy
  0 siblings, 2 replies; 4+ messages in thread
From: Oleg Ranevskyy @ 2014-12-18 17:20 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Hello musl community,

I encountered two problems with musl when running the LLVM libc++ tests
linked against it.

1. The wcsnrtombs function returns the number of converted wide chars
instead of the dst length in bytes. "cnt++;" at the of the function should
actually be "cnt += l;".

2. If a NaN value is printed by vfprintf and the MARK_POS flag is set to
add '+' to positive values, musl doesn't add '+'. I found the following
statement on the musl web page: "Quiet nans are treated equally (there is
only one logical nan value, it is printed as "nan", the library does not
care about the sign and payload of nan)". However, Linux libc adds '+',
boost also has special support for this. Absence of the sign breaks one of
the LLVM libc++ tests. Is this a subject for change?

Would you be able to kindly review these findings and share your opinion
please?

Thanks in advance.
Warm regards,
Oleg

[-- Attachment #2: Type: text/html, Size: 1236 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-19  5:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 17:20 Wrong wcsnrtombs return value and positive NaNs printing Oleg Ranevskyy
2014-12-18 19:12 ` Rich Felker
2014-12-19  5:19   ` Rich Felker
2014-12-18 19:13 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).