From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 111C6C7EE24 for ; Mon, 5 Jun 2023 12:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229815AbjFEMJS (ORCPT ); Mon, 5 Jun 2023 08:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233268AbjFEMJQ (ORCPT ); Mon, 5 Jun 2023 08:09:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A7059C for ; Mon, 5 Jun 2023 05:09:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1FCAF6231E for ; Mon, 5 Jun 2023 12:09:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D424C433EF; Mon, 5 Jun 2023 12:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685966954; bh=IfZy84vw9dv8V3efJgKqpa+2GX9eIvU5fj/EyI4/sD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DIoJwPSjgy+j43gl+wz/c/lmLopEnfY7mdF7KgWLRRRObJyzqxrcffpjHxD/WArew HmM8eL7ZboQbiArk6s6m+lO6FODZcpaPzqngK8wcgUG63M+94UYpXfLRVwmDsKYxkj QLYHTACGRLBQ0KKAPgAgWhsi8WU0Eq2ly9IcsB/b3pCY30MXgpjVY94X+zmTBf7GG5 zDSR3d3vFKJLk2mfj9kICGXyHQZnqDXBgxfcebPeGe6WTlZa5JAe+DVPo/E0/WypBg O+CWnSaCPOxQp9Tx1R6/L/U3SHVszHMBWYl+s7/8QAWMIIjznC6IBOC6kg1/EWXycp SrAWXnGTBs//A== From: Alejandro Colomar To: linux-man@vger.kernel.org Cc: Alejandro Colomar , Yedidyah Bar David , Sam James Subject: [PATCH v2alx] isalpha.3: Move NOTES to CAVEATS, and clarify some Undefined Behavior Date: Mon, 5 Jun 2023 14:09:02 +0200 Message-Id: <20230605120901.10155-1-alx@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <14cbb4e3-9302-8065-2320-978181fbede0@gmail.com> References: <871qiqcf0o.fsf@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org Reported-by: Yedidyah Bar David Signed-off-by: Alejandro Colomar Acked-by: Sam James --- I'm just resending (now with Acked-by from Sam) to test a change in my git-send-email(1) configuration. Cheers, Alex man3/isalpha.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man3/isalpha.3 b/man3/isalpha.3 index 000e816d7..721ca8972 100644 --- a/man3/isalpha.3 +++ b/man3/isalpha.3 @@ -345,13 +345,15 @@ .SH HISTORY .TP .BR isascii_l () glibc 2.3. -.SH NOTES +.SH CAVEATS The standards require that the argument .I c for these functions is either .B EOF or a value that is representable in the type -.IR "unsigned char" . +.IR "unsigned char" ; +otherwise, +the behavior is undefined. If the argument .I c is of type -- 2.40.1