public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Extended Char Intro: Use getwc in example (Bug 25626)
@ 2020-03-20 21:16 Carlos O'Donell
  0 siblings, 0 replies; only message in thread
From: Carlos O'Donell @ 2020-03-20 21:16 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b8de7980c06d97f36cdf4fe0871be7ec8ca58073

commit b8de7980c06d97f36cdf4fe0871be7ec8ca58073
Author: Carlos O'Donell <carlos@redhat.com>
Date:   Wed Mar 4 21:19:36 2020 -0500

    Extended Char Intro: Use getwc in example (Bug 25626)
    
    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>

Diff:
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-20 21:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 21:16 [glibc] Extended Char Intro: Use getwc in example (Bug 25626) Carlos O'Donell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).