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: 1249372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-110283-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=YCIyQLXl; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=dnncUnS4; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Xvl72qJLz9sRR for ; Thu, 5 Mar 2020 13:26:42 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=MDf +cFDLF4OpopMQmJttNbz0jGTv0BZorKFURWamHCzyhwPN70yq1550kv8TTxM8sYt lkcOgeak51PFwR0EwTo3dP8LyMz/DeVbwnSNySF75hJdrDyP1YxC5BVPYtY9Vf3M L8tGAVrhQdPu9GDBFavKAH2wzXxR1+esZNsac9eg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=iarvcwUAf fuaP+YFOFlFD001viw=; b=YCIyQLXlSsTb/eLxcacQUm49tCd1o/PvlSAZbpNwH OI/5RlgvLjeQGTS9IUVIf1D2j8PSgknifFbAVLK40mYpFbpPg2518ybw5Y6K6y0X fFvadhVaKTdXX4zFsN4weTAByn3A5s1X6nuQnLvzVmgx4+OWqRwbkc+1F2HMhRba /Y= 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= 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