]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
mbstowcs: Remove outdated comment
authorFlorian Weimer <fweimer@redhat.com>
Mon, 13 Aug 2018 12:05:00 +0000 (14:05 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 13 Aug 2018 12:05:01 +0000 (14:05 +0200)
ISO C requires that there is no effect on any global conversion state,
so the change in commit 9f097308c7465443765d1e25699a4cf33eff5455 was
correct in princple.

ChangeLog
stdlib/mbstowcs.c

index b099b192bad6fa258dfcc3a8f836c56e382ad7b0..07b4cec43d895ee4ed3cea58cb8989adadeb9c0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-13  Florian Weimer  <fweimer@redhat.com>
+
+       * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
+
 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * benchtests/scripts/benchout.schema.json (properties): Add
index 5bc77a2ea2fb2c9c99d5da833dd3356b9cc03991..d8b91a73de3b8c27597d4a6720888b760b6a501f 100644 (file)
 
 /* Convert the string of multibyte characters in S to `wchar_t's in
    PWCS, writing no more than N.  Return the number written,
-   or (size_t) -1 if an invalid multibyte character is encountered.
-
-   Attention: this function should NEVER be intentionally used.
-   The interface is completely stupid.  The state is shared between
-   all conversion functions.  You should use instead the restartable
-   version `mbsrtowcs'.  */
+   or (size_t) -1 if an invalid multibyte character is encountered.  */
 size_t
 mbstowcs (wchar_t *pwcs, const char *s, size_t n)
 {