From owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org  Mon Aug 25 21:01:36 2025
Return-Path: <owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org>
X-Original-To: sc22wg14-domo2
Delivered-To: sc22wg14-domo2@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 6BAF0356BDD; Mon, 25 Aug 2025 21:01:36 +0200 (CEST)
Delivered-To: sc22wg14@open-std.org
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124])
	by www.open-std.org (Postfix) with ESMTP id EE8F6356B38
	for <sc22wg14@open-std.org>; Mon, 25 Aug 2025 21:01:35 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
	s=mimecast20190719; t=1756148495;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=/Em+D7U22qnl6GsAYlHrRBjrAbpswUJlKxn6h0iNjpw=;
	b=VwH1fXH2veDkjXr6G2wuCFCfHitA82Y382GhXuzFhoU0jU7FfMy7dOi1vn+PJwvAWLYJu4
	iUp3FaaDUTxqnXXUz7xkQ3HOlp3udv1uXCP1W8yUidPsnom4QElqND8pX9a2ovB+7z2N4Q
	PiTU06mo61FPUkFb/gvoirFUyci394E=
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com
 [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
 us-mta-645-tvndvRk6MoWQoSWvHDQ5WA-1; Mon, 25 Aug 2025 15:01:33 -0400
X-MC-Unique: tvndvRk6MoWQoSWvHDQ5WA-1
X-Mimecast-MFC-AGG-ID: tvndvRk6MoWQoSWvHDQ5WA_1756148492
Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3c9bf5c8b12so889473f8f.0
        for <sc22wg14@open-std.org>; Mon, 25 Aug 2025 12:01:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1756148492; x=1756753292;
        h=mime-version:references:message-id:in-reply-to:subject:to:from:date
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
        bh=/Em+D7U22qnl6GsAYlHrRBjrAbpswUJlKxn6h0iNjpw=;
        b=p5yl8/bb9G4lcdBrwLvrUqvyrFEwsAlDgy9Akt8pObIHfaCNJpCM4t2xB2ZtZeFnmu
         Ev0b8gH08KXmpxXpmRkM1HIKF7Mwr66XY4L0JlYtZkhmK01mvWfTO2ItJ8kZCQCuhZzV
         YI+8Ctd3hWVTHHF0fRk5RQ22nCxia+usfv+vj06VlPqISFmq3T93wVfzqOyPtudqNnUt
         qbkWTCVTZsFTj56e/ZlVpCCqniYQWy3djAd96pDOWVzmjLXDPcpGQfYGfgALRAguki+d
         optV41HlR5Cm59saXN27bZNrVHGvmpjmENpxb3vGUJUAAKUfWGje2gCOJye+B7H6qgL5
         m73A==
X-Gm-Message-State: AOJu0Ywyc0CeHPQIaUzZuSf2CHEG00QtPaAAz+CYPpH5XFDEwyZQMlaf
	GMmOBZio/JkYw2RTMtDAC5oG9RDdVnKQCZ4cIoyne5Vfl1F8k1y8M8LE2W4t4AEWP/u+sVy8+tT
	ekvHTiyOUS4UZe9/HVWIdrQrSqN62PKMYMo+jWe8+2gvd1Ijd4DcX6GBvkg0KTom6Ufk2lPzMe9
	B/TM78eSvyN9scG7YQh3cixVsu/HX49NqWi57BYQYW
X-Gm-Gg: ASbGnctP013zgh4Jlz16NrUr6ceqnryV9O9f6pWf8Jkg7YZsePHbIvCOvB4siDd3S+z
	RTRxnOvAVWkUmiW1DaVTgsrIyrt0leWRTndzXpuSceOUcbTMyK+Jc8LkJIeOrZYullA1xY6UK7s
	rwb3zGCKv4/bwDwQWYoZuOOqrcZ/grln70Ej3N0vYh4O+69D2vx0U7wnq47OeqJRWa49MT/WY4e
	ssNnXYSJpbWLV3dFUUEGfMKDnJqyys0AdhAb7Rhv6SI7ypn9aRtin3SF3rP1VLtL68t8fJ5vwqu
	7RYRYKC1a2Wskl1x6wk6UUtS38nlwGF6bAluu3dJrG74bIM3481K8iyNp6I88+zfEBvExFXsp/S
	6THhDDeQ6yBcTLwMtov6KSm8tgddX92naRbVJScho2zVFmUyc+WVenv5UEKM=
X-Received: by 2002:a5d:5f48:0:b0:3c7:f0fb:853 with SMTP id ffacd0b85a97d-3cb031c0a4amr529473f8f.7.1756148492122;
        Mon, 25 Aug 2025 12:01:32 -0700 (PDT)
X-Google-Smtp-Source: AGHT+IFQlSQEYn7VDhq/SiWV7z2iYXYOguzKKUym4T9dFG+bo2McpSvvogipEcXMJ+0ZbyPtiJOgIw==
X-Received: by 2002:a5d:5f48:0:b0:3c7:f0fb:853 with SMTP id ffacd0b85a97d-3cb031c0a4amr529451f8f.7.1756148491667;
        Mon, 25 Aug 2025 12:01:31 -0700 (PDT)
Received: from digraph.polyomino.org.uk (2.3.3.e.b.b.1.5.0.0.0.0.0.0.0.0.7.f.3.9.3.7.f.b.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:bf73:93f7::51bb:e332])
        by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3c70ef55aabsm12400751f8f.23.2025.08.25.12.01.31
        for <sc22wg14@open-std.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 25 Aug 2025 12:01:31 -0700 (PDT)
Received: from jsm28 (helo=localhost)
	by digraph.polyomino.org.uk with local-esmtp (Exim 4.97)
	(envelope-from <josmyers@redhat.com>)
	id 1uqcRc-00000000oig-3QuJ
	for sc22wg14@open-std.org;
	Mon, 25 Aug 2025 19:01:28 +0000
Date: Mon, 25 Aug 2025 19:01:28 +0000 (UTC)
From: Joseph Myers <josmyers@redhat.com>
To: sc22wg14@open-std.org
Subject: Re: [SC22WG14.29444] New issue #1004: Classification of `scanf`
 failures
In-Reply-To: <20250307181829.636C7356854@www.open-std.org>
Message-ID: <a6937f86-ff67-bc0c-9cf0-975dc2ae5fa4@redhat.com>
References: <20250307181829.636C7356854@www.open-std.org>
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: BZOXqr0TkmenpyWAt0lx7qyYJM5y7WFCQdC0Z0107Yk_1756148492
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=US-ASCII
Sender: owner-sc22wg14@open-std.org
Precedence: bulk

Given the desire in the meeting today to make this a matching failure 
rather than a third kind of failure, I propose the following wording 
(subclause references based on C23).

In 7.23.6.3 (The fscanf function), after "Failures are described as input 
failures (due to the occurrence of an encoding error or the unavailability 
of input characters), or matching failures (due to inappropriate input)." 
insert "If the implementation does not support a specific width length 
modifier, this is a matching failure.".  Remove "or if the implementation 
does not support a specific width length modifier" under Returns.

Make the same changes in 7.31.2.3 (The fwscanf function).

This would also supersede all the changes for scanf functions for issue 
#1012.

-- 
Joseph S. Myers
josmyers@redhat.com

