[Bug 215848] [patch] Ambiguity in returns for mbsrtowcs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 7 00:46:59 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215848

            Bug ID: 215848
           Summary: [patch] Ambiguity in returns for mbsrtowcs
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc at FreeBSD.org
          Reporter: andrew at ugh.net.au
          Keywords: patch

Created attachment 178593
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178593&action=edit
diff to mbsrtowcs.3

It's not clear from the man pages of several multi-byte and wide character
functions that, if you pass NULL as the destination, they return the number of
characters that would have been written where dst an actual array. I attach a
diff to fix one of them.

I haven't done others because:

a) I need to confirm which ones this is true for

and

b) I wasn't sure how great my wording was.

If someone who knows more about this than I wants to make similar changes to
other man pages then that is great. Otherwise, once final wording is decided
upon, I might get time to test and submit more.

I am using 11-stable r310981

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-doc mailing list