From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 550 invoked from network); 3 Jul 2023 01:37:59 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 3 Jul 2023 01:37:59 -0000 Received: (qmail 9351 invoked by uid 550); 3 Jul 2023 01:37:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 9315 invoked from network); 3 Jul 2023 01:37:55 -0000 X-Virus-Scanned: SPAM Filter at disroot.org Date: Mon, 3 Jul 2023 07:37:44 +0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1688348263; bh=VpLQ/svK1B3KqNSXzWfep0XBAXVQRiu1KEBlWgwrNQM=; h=Date:From:To:Subject:References:In-Reply-To; b=Nuw1Lw0IcrhFc339RGzYrV4ly4ZBU0AoLPKkXrmM5KxbpfQRSau6gqQ3iPtR8/ooY Lnemivu49CRnCxz8sFbhqcty8he33SMJLyBa3HV/DEy9HXMbHDC9UiwiDXYXkm4m2c 9ng5kyZj4m9alQl7LdGAw4C/e6iU+DEcJSDh5UpZaRakIrxBEWk4Z6cwuk5oxie/Ab pahzWtnz06fGuR7lUUzYbbI2v8tYYgC3akPCKNU1ujUbW1ZcQoHgzaCLXEJecjx5gC +ZQW/gtNtP8Fhc/C+fmwJ+SRAzStSzFMrg0rj8EP1az4FOXxwh8Koxup9zwyPB02Kw loJMZ3WkJxWfw== From: NRK To: musl@lists.openwall.com Message-ID: <20230703013744.ndlqmt3f662g6vwl@gen2.localdomain> References: <976b592b08c82bd6b1f8834904071db6602f3885.1685534402.git.Jens.Gustedt@inria.fr> <20230625172619.GR4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230625172619.GR4163@brightrain.aerifal.cx> Subject: Re: [musl] [C23 string conversion 1/2] C23: implement the c8rtomb and mbrtoc8 functions On Sun, Jun 25, 2023 at 01:26:20PM -0400, Rich Felker wrote: > A cleaner approach might be a union where the presence of the unsigned > union member yields the alignment. Slightly off-topic, but do you know if this is a standardized guarantee or not? While I'm aware that this works in practice - sometime ago I was looking into the standard (c99 IIRC) to see if there's anything that actually guarantees that or not and couldn't find anything concrete. - NRK