From owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org  Tue Dec  1 19:57:19 2026
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 0D5EF356ED7; Tue,  1 Dec 2026 19:57:19 +0100 (CET)
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 890E4356EB9
	for <sc22wg14@open-std.org>; Tue,  1 Dec 2026 19:57:16 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
	s=mimecast20190719; t=1796151435;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type;
	bh=RQPWqKX9PLCVLKOu4ci4VZ4uRlIaqF61Lu//3MoLZYo=;
	b=AxDtzbtMk9mdIu8jiRznlYQWudTp33dWa62JYtjVT0eJ1JeDPKTDobe/+MluiJvQAsiu7m
	VroPZXTIB5DFVo6bRhbVjUf+4x9C/MCdZ69siYFRyzthc3DJVAOBLYsZZ3RhWORPu2ZKzM
	x/2J6NB/4j+moUibH0L2qMpkem4ybno=
X-MC-Rep: binary re single
Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com
 [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
 us-mta-439-REbtfWfQMv-17lI2VriZng-1; Tue, 1 Dec 2026 18:57:14 +0000
X-MC-Unique: REbtfWfQMv-17lI2VriZng-1
X-Mimecast-MFC-AGG-ID: REbtfWfQMv-17lI2VriZng_1796151433
Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-48fbcf023dcso2271075f8f.2
        for <sc22wg14@open-std.org>; Tue, 01 Dec 2026 10:57:13 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796151433; x=1796756233;
        h=content-type:mime-version:message-id:subject:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=RQPWqKX9PLCVLKOu4ci4VZ4uRlIaqF61Lu//3MoLZYo=;
        b=IFcEVwwAfyi+hD6Bd1fSDHcT9HvMZMI9p8g6zwVnH1kFeB0qk81/0m4nlKNef8BufM
         4C2FrZ9IcKcweB5At7RD8ZYnK5RPE1KsC2KTwOKdM5+uJP0RMffWOmyO1vTMIBJE/kxF
         n5RbEr+iigPRTXv3TDnXyO4SOw/ByXuAirmWGeQPOZeLkZaolS+4eOzbV0z5yci87bGN
         6JivtMw0QwaQDyrAZhnp/gtHAXblDtpw2s84RFJn4Vgeti2Q3EjUM4rR/0Az02zr1FYB
         8KrbGbzaWvWfgjPoBBLVyKxmdcsC+J58uHnhDlCEXhzA8FKX3uw+9KQ++UHxZ5spI94Y
         TaRg==
X-Gm-Message-State: APuU4Z+b9jy/wjQDA2LFY4U4fxHIjCko2CLLerD1SOvn96SIcivPObr9
	ku4mljIf2VI2EZovnZ63uR+QBIxk4sC730cVmKliPPza1chNLjD4osocjG6yMa+IGhJpkulgZv2
	RePWsxofULqdsejDxXcM/qPNTcV/pJWmWFnqbdZRxQMpHU783dCEq34PX8KeDiBpDFgicBRzffD
	32qDjDpTm5EKhSXKf8EfcQsyjoZbtnAZLaY1t0oGHq
X-Gm-Gg: AZFdTZedNkQ+svuIb6aBJqzvLnyw0Q9jO6Xqz8mAPRBDuBUGL5woi0Jm5JdAn/5S26W
	N1eY+6X1sCoplZ/PT2tW2725povYOyrzjVXWNHUf8ZXwxHWW3jCEPOFnyv1vUdVtqlZIEMmYgOd
	n72ClL3C0/uEHRaBb/yUMU8T5h7viKOgXSFwSnCV9lNho/Hgky7ZZnuMvCj+TJdaLhJP7TPyltx
	mDPXeIzU24F/WzsiX9FpClFi1vk4nOQIWiCr1nRevXyQLrh2RVPLIJ5qMWRUrsoWV1zBTbQjXk+
	7YDFVp9ArCfvXqvaQEUNRLN788CrcFyM6pq3FSLu8EV7sUymwET1cNOuX2QOgPnE8106w8RViNe
	QW5LVKzPkqg4flBoyZpo/VhmcW0hY9Bx4Gm03so2EZj9rZt84lldNa1banJ8xiFxQ/T10S7ZkFr
	HyxxYNob7EaxQ60b2ji7Y=
X-Received: by 2002:a05:6000:2309:b0:4a7:45a2:ec26 with SMTP id ffacd0b85a97d-4abb0f3bc89mr77513689f8f.16.1796151432694;
        Tue, 01 Dec 2026 10:57:12 -0800 (PST)
X-Received: by 2002:a05:6000:2309:b0:4a7:45a2:ec26 with SMTP id ffacd0b85a97d-4abb0f3bc89mr77513666f8f.16.1796151432229;
        Tue, 01 Dec 2026 10:57:12 -0800 (PST)
Received: from digraph.polyomino.org.uk (digraph.polyomino.org.uk. [81.187.227.50])
        by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67fec7sm68979960f8f.26.2026.12.01.10.57.11
        for <sc22wg14@open-std.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Dec 2026 10:57:11 -0800 (PST)
Received: from jsm28 (helo=localhost)
	by digraph.polyomino.org.uk with local-esmtp (Exim 4.98.2)
	(envelope-from <josmyers@redhat.com>)
	id 1xYT2M-00000007Tvm-2Pqs
	for sc22wg14@open-std.org;
	Tue, 01 Dec 2026 18:57:10 +0000
Date: Tue, 1 Dec 2026 18:57:10 +0000 (UTC)
From: Joseph Myers <josmyers@redhat.com>
To: sc22wg14@open-std.org
Subject: Wording for issues 1035 and 1050 (wctrans_t and wctype_t)
Message-ID: <ccdf9216-6edf-4738-edbb-01a429494f19@redhat.com>
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: F-q0TZiGfwdTnSPL6qqrdBmi92LW46eSW3541IcZvuA_1796151433
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=US-ASCII
Sender: owner-sc22wg14@open-std.org
Precedence: bulk

I propose the following wording in response to issues 1035 and 1050, two 
issues concerning the wctrans_t and wctype_t types and associated 
functions.  Note that we didn't actually discuss how to respond to 
questions 5 and 6 from issue 1050 (which are still relevant for pointer 
types, while questions 1 through 4 are eliminated by disallowing floating 
types), but I've included proposed responses, as well as a proposed 
response to issue 1035 and proposed wording changes for issue 1050.



For issue 1035:

### Suggested response

The specification of the functions using these types is sufficient for
implementations to make an appropriate choice for how to define these
types.  The committee does not feel that adding an explicit statement
about the number of different values of these types would be helpful
to users or implementations.  See also [issue 1050](issue:1050).



For issue 1050:

### Suggested correction

Modify C23 7.32.1 (Wide character classification and mapping utilities
`<wctype.h>`: Introduction):

> The types declared are `wint_t` described in 7.31.1;
> 
> `wctrans_t`
> 
> which is <del>a scalar</del> <ins>an integer or pointer</ins> type
> that can hold values which represent locale-specific character
> mappings; and
> 
> `wctype_t`
> 
> which is <del>a scalar</del> <ins>an integer or pointer</ins> type
> that can hold values which represent locale-specific character
> classifications.

### Suggested response to Question 5

Yes, equality between different `wctrans_t` values and equality
between different `wctype_t` values requires that those values work
the same with `towctrans` and `iswctype`, respectively.

### Suggested response to Question 6

No, multiple invocations of `wctrans` and `wctype` with the same
`LC_CTYPE` and argument are not required to return the same value.
For example, it is valid to return pointers to different allocated
objects that represent the same underlying semantics.


-- 
Joseph S. Myers
josmyers@redhat.com

