summaryrefslogtreecommitdiffstats
path: root/gl/mbtowc-impl.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-03-26 12:53:53 +0100
committerGitHub <noreply@github.com>2026-03-26 12:53:53 +0100
commit13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch)
tree3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/mbtowc-impl.h
parent9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff)
downloadmonitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz
Update/gnulib 2026 03 (#2247)
* Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers
Diffstat (limited to 'gl/mbtowc-impl.h')
-rw-r--r--gl/mbtowc-impl.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gl/mbtowc-impl.h b/gl/mbtowc-impl.h
index 3366c9da..c6d61968 100644
--- a/gl/mbtowc-impl.h
+++ b/gl/mbtowc-impl.h
@@ -1,5 +1,5 @@
1/* Convert multibyte character to wide character. 1/* Convert multibyte character to wide character.
2 Copyright (C) 2011-2025 Free Software Foundation, Inc. 2 Copyright (C) 2011-2026 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2011. 3 Written by Bruno Haible <bruno@clisp.org>, 2011.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -27,11 +27,10 @@ mbtowc (wchar_t *pwc, const char *s, size_t n)
27 else 27 else
28 { 28 {
29 mbstate_t state; 29 mbstate_t state;
30 wchar_t wc;
31 size_t result;
32
33 mbszero (&state); 30 mbszero (&state);
34 result = mbrtowc (&wc, s, n, &state); 31
32 wchar_t wc;
33 size_t result = mbrtowc (&wc, s, n, &state);
35 if (result == (size_t)-1 || result == (size_t)-2) 34 if (result == (size_t)-1 || result == (size_t)-2)
36 { 35 {
37 errno = EILSEQ; 36 errno = EILSEQ;