diff options
author | Karl Williamson <khw@cpan.org> | 2022-12-31 13:08:42 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2023-01-12 17:42:27 -0700 |
commit | 94e919c3f7ce3a89aefc27850b210a9769c65681 (patch) | |
tree | c9d51d369832f0d00f23225f7bf2a452e47c17a1 | |
parent | 65be4a0ded9e67be17d2c559c1c0dc8d3d746ed6 (diff) | |
download | perl-94e919c3f7ce3a89aefc27850b210a9769c65681.tar.gz |
POSIX.pod: Clarify mbtowc(), wctomb() pod
-rw-r--r-- | ext/POSIX/lib/POSIX.pod | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/POSIX/lib/POSIX.pod b/ext/POSIX/lib/POSIX.pod index c7e9bad2bb..f4a60410f3 100644 --- a/ext/POSIX/lib/POSIX.pod +++ b/ext/POSIX/lib/POSIX.pod @@ -1146,9 +1146,10 @@ parameter is stored. The optional third parameter is ignored if it is larger than the actual length of the second parameter string. Use C<undef> as the second parameter to this function to get the effect -of passing NULL as the second parameter to C<mbtowc>. This resets any -shift state to its initial value. The return value is undefined if -C<mbrtowc> was substituted, so you should never rely on it. +of passing NULL as the second parameter to C<mbtowc>. This ignores the +first parameter, and resets any shift state to its initial value. The +return value is undefined if C<mbrtowc> was substituted, so you should +never rely on it. When the second parameter is a scalar containing a value that either is a PV string or can be forced into one, the return value is the number of @@ -2214,9 +2215,10 @@ L</mblen> and L</mbtowc> may be used to roll your own decoding/encoding of other types of multi-byte locales. Use C<undef> as the first parameter to this function to get the effect -of passing NULL as the first parameter to C<wctomb>. This resets any -shift state to its initial value. The return value is undefined if -C<wcrtomb> was substituted, so you should never rely on it. +of passing NULL as the first parameter to C<wctomb>. This ignores the +second parameter, and resets any shift state to its initial value. The +return value is undefined if C<wcrtomb> was substituted, so you should +never rely on it. When the first parameter is a scalar, the code point contained in the scalar second parameter is converted into a multi-byte string and stored |