This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Extended Char Intro: Use getwc in example (Bug 25626)
- From: Carlos O'Donell <carlos at redhat dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 4 Mar 2020 21:26:28 -0500
- Subject: [PATCH] Extended Char Intro: Use getwc in example (Bug 25626)
Tested by building the pdf with make pdf and reading the
section to ensure it makes sense.
OK for master?
8< --- 8< --- 8<
In the "Extended Char Intro" the example incorrectly uses a function
called wgetc which doesn't exist. The example is corrected to use
getwc, which is correct for the use in this case.
Reported-by: Toomas Rosin <toomas@rosin.ee>
---
manual/charset.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/manual/charset.texi b/manual/charset.texi
index f6a980f6cb..9fd0166115 100644
--- a/manual/charset.texi
+++ b/manual/charset.texi
@@ -186,7 +186,7 @@ are used:
@{
wint_t c;
@dots{}
- while ((c = wgetc (fp)) != WEOF)
+ while ((c = getwc (fp)) != WEOF)
@dots{}
@}
@end smallexample
--
2.21.1