From patchwork Thu Mar 5 02:26:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos O'Donell X-Patchwork-Id: 38422 Received: (qmail 52803 invoked by alias); 5 Mar 2020 02:26:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 52795 invoked by uid 89); 5 Mar 2020 02:26:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583375192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MQObmWn58vNQJuIfPbXqGNCyiRtaIB5nu9vjbGeVmbE=; b=dnncUnS49UtwpperVj8lnAn7vQSxyVQVjUbUdVZGD+pHOQox1gjpsvmdfM6WZR23FCbgD5 oMhTny4a88KjhY0+actlbnN6n2G1iDa7lABgGd/yatMUkC9iTSHTC5q5ZBLUsOKbe6PVLW 6z67aHrVlkRFylaPY1xF68B8ZvEbiUU= Return-Path: To: libc-alpha From: Carlos O'Donell Subject: [PATCH] Extended Char Intro: Use getwc in example (Bug 25626) Message-ID: <502f1736-4604-1d7b-e4a7-234ad38820e9@redhat.com> Date: Wed, 4 Mar 2020 21:26:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 --- 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