From nobody Tue Sep 12 14:53:16 2023 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RlRR06kCyz4tBWY for ; Tue, 12 Sep 2023 14:53:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RlRR05XzXz4X30 for ; Tue, 12 Sep 2023 14:53:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694530396; a=rsa-sha256; cv=none; b=R1pJ13IM9N34aVdtejo6h3XuArNuuFhv1aD5NDEM9281znGQYR8bz1IVOUncseKKHH7Vyu nIJCwU5L7T6mKcXA8QzIBkj8FSbxg3HX8/x14oA0NSZys4P07k2XBhaaDROSyB1nQdtBCN MK7Z69pxiwxxczg0MKXhKCB/71Xs5BKfEAb3jSc2LMdatYJJlbhAXQKyLoHTo6aeC/0vsh /I2T1LzYF9VxNIGw3Z27CwAhn5l4UKGHzoD65W0lZedtWrDVPzvSrd1PkKpr9AjHPDe76f vgpj08liRIHxXnL09E+MhRivwC09Xl3u2YBX9i6a4aZUqdHC8bNoTMy9Y2hpoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694530396; 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: in-reply-to:in-reply-to:references:references; bh=+ohfADs/Pgb9KNralZ0CPQK4w9CVhocmWZhPArd2quU=; b=v5NP2re4fBqjULA7gtrP8m59kb+xx9mnCAPpY5GPr7eEguXZH7Ou/7WI7rgdt35VqOFuDY RhvQkW4B8iT5hMxKpOTfVAjIdC9zCBTPx6scjLTj83BRS9yZBWOI1UUzCv141ufO0hVCq3 Mv0r/Wpkl3E+FfXkWC9oK+Us/xzQBKWzlP3x96YQkpWyIdgrUKljL4OsXJaW4MiE6RMP8h voxEga/QK/St6vCz/PJARTmjM6NBqJwOIuZrSNPU6OCmAQMJHZdRjl13jXkdb7bG0DqhfU yf/f8tojI1fuki0axZqgwZn2kwlotc27CA5krDunNsc6xTlvXLOflUoLHdIsOQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RlRR04ctszc5H for ; Tue, 12 Sep 2023 14:53:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38CErGAJ090575 for ; Tue, 12 Sep 2023 14:53:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38CErG22090574 for numerics@FreeBSD.org; Tue, 12 Sep 2023 14:53:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 272758] c16rtomb and c32rtomb wrong return value (at least on aarch64) Date: Tue, 12 Sep 2023 14:53:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272758 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |numerics@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Sep 12 17:09:28 2023 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RlVS84SrLz4t6sW for ; Tue, 12 Sep 2023 17:09:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RlVS8147qz4Hjd for ; Tue, 12 Sep 2023 17:09:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694538568; a=rsa-sha256; cv=none; b=hPQGSr7jmC2AHxkXWAjIy9MLV47jbOu8r48SMq/doP1jm7cALujwHkEhzs+GqKHMorhSvg MNUQmB85fTuALKjz38GeZQolftZyYGs3Ze1+zCn47uJTNzPS5jHmxZV0odtj3oT1sg25Ge Ut3SwsphNF+NHfCiSUwh9X49huI33e/V1DnT6L0JOn8gdVDU4p3Oj4qBEV1NO1CRPgJuYl ZweObqiR/4pyEqXG36c9KH7K6hK4+Vvk068sX4DdAxZlaCe2qPTuvge8RaRb9or0R/bAoj mBy5ZOCx77MYwJKNQE81lruqeABCZRnB1hsoTEec0ZJOUCLedyrgtLC4RDSaRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694538568; 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: in-reply-to:in-reply-to:references:references; bh=NZuRVFaw0dGp1W5dMZEOvz5fRcdHuxtHH/SfgqsGT7g=; b=VQnRw0JTPx2hMUgX1Xk9ExlHEapp35r+HSA7gELXVlQXgTkNQESIJB66FVwswvNeObN804 9/hjFgpD3Y/WhfVChWx9qkII5iASqUUa8ZXzIKbTPi3hlleyzaWfHdWrCU0HJjpg2I38zk 7hjhNrz3t4x1h1M2hJGwKivDI1VwegNxt3Ib7w2p6tGU/SNQEuViqDpP+/2Zvr8EPBUxHq I5UWo/GudFOExum/47c5HgoJomzcxnbj0eSWjStrqxa2YVP4UBHbIFlkSMp31u9sfslSGC XyZwkmOcJB0mIbpTLcZdowFlom/Tb5RyxJPdnQX/gkpMSI9oM7llR+VSjcjsOw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RlVS809QzzgcZ for ; Tue, 12 Sep 2023 17:09:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38CH9Rt9084266 for ; Tue, 12 Sep 2023 17:09:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38CH9Rkd084265 for numerics@FreeBSD.org; Tue, 12 Sep 2023 17:09:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 272758] c16rtomb and c32rtomb wrong return value (at least on aarch64) Date: Tue, 12 Sep 2023 17:09:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272758 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #2 from Dimitry Andric --- I think numerics@ is not the right assignee, since that is mostly for math-related problems (i.e. mostly lib/msun). mbrtowc, mbrtoc16, and mbrtoc= 32 are character conversion functions. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Sep 12 17:24:20 2023 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RlVnK21rvz4tF6X for ; Tue, 12 Sep 2023 17:24:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RlVnJ5thBz4M1p for ; Tue, 12 Sep 2023 17:24:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694539460; a=rsa-sha256; cv=none; b=gEXcLHAipy1dztfVGAHx5yrE83oOkefOiN6Xjce7HL2JFs/XcfXUyz480092CC22CzxJgU 2+Pj5Cv5yMOigicvW/ZpZmh5526KxT6kf37CfqlHie3EHwRebH1zv4Cqtt+4TxmUS9cRWQ 2ECM2dnqKd5VwKIul9ctkOEvd3kqi6lehK/EbfHiMu8P8SLLGMF9x9zb7TX2lk1CKf75MK RbkuDuz3+MiR3XitMHJUqCN02Ri9vssHeE36kG/0RA/VyvzKonYMadA9x8hdDUGr4CNgcf VOF6fkED7VXBsbBlB5nGH8CtvgLZvgpYeODbyluN5qhMmE/WbEhsSelO7agQLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694539460; 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: in-reply-to:in-reply-to:references:references; bh=OwPKywTSrIXG4q/gCBbmUaIbslXp8dG5F3edGmcSmEY=; b=IaRW1rvc6NB9J8JPYIXblIg2F5FUVZxH/Adc89H4yzM1GVIX7ZD5cM8rgLLqUZUP/U5rYF TdpJN2vTBwEy6L3oXe9fR6GXSX1S8dpwOgaTS5LBDUd9CDhiMsKuU+Y7+LfAFVQ/qF3070 EsYL3DE19neeqoajarYTC7EPXth7YapFaj6tRqs8Xp6PN0yXLp5lFzG0Vk58rL1c9k+yBG wLjO6Xeuii8bV0QsvfhzJDV4RloOUz6QG5XUiuAA2QlcIJ2iDPAqOAMItTn65PpPjxczFT 6/UZ6PBnp8pT5nRQEVK7u4KELQTtcmX/rlENwJhpRKIgtceixSDkUU3xeOoWBw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RlVnJ4zMNzgvl for ; Tue, 12 Sep 2023 17:24:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38CHOKkS016417 for ; Tue, 12 Sep 2023 17:24:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38CHOKLV016416 for numerics@FreeBSD.org; Tue, 12 Sep 2023 17:24:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 272758] c16rtomb and c32rtomb wrong return value (at least on aarch64) Date: Tue, 12 Sep 2023 17:24:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272758 --- Comment #3 from Dimitry Andric --- (In reply to John F. Carr from comment #1) Yes, setting the mbstate_t to zero is what should be done. Quoting C11 7.29= .6: > The initial conversion state corresponds, for a conversion in either dire= ction, to the beginning of a new multibyte character in the initial shift s= tate. A zero-valued mbstate_t object is (at least) one way to describe an i= nitial conversion state. A zero- valued mbstate_t object can be used to ini= tiate conversion involving any multibyte character sequence, in any LC_CTYP= E category setting. If an mbstate_t object has been altered by any of the f= unctions described in this subclause, and is then used with a different mul= tibyte character sequence, or in the other conversion direction, or with a = different LC_CTYPE category setting than on earlier function calls, the beh= avior is undefined. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Sep 12 17:25:23 2023 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RlVpW0tQxz4tFjY for ; Tue, 12 Sep 2023 17:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RlVpV6thHz4M7L for ; Tue, 12 Sep 2023 17:25:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694539523; a=rsa-sha256; cv=none; b=PEH5xBWV1TpsMe6OFvHN+uGZRZpk0DyFGaDeOu7Dr0uA1Mg3cyX6QRqY0J0g91/rDeQ6QF 2NuHY+yoeIwyLXji8XQ65eOn/IEB00UpWOJ1ROHhIliKj525FH94Tw0zSKm2ZZ1CUpDfGL /hXlSIaOdkYsP649JQcTr8XkbOA0qTFDlStRkvyHdmLcb3aX2zC2d5myDTGWMPrNFtgAZZ BRqu0g1qvuYwqGha7AjUM2eOFtT+P+G3mNQNnzLzEd3p7IzEru+C0QmesSF+ZGuDCwJT+P zAApLr2wd1hYjQLzreRgcjJyZAI6MVlxMicEGxUs2n8jT/iit9trCbdEkaoM0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694539523; 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: in-reply-to:in-reply-to:references:references; bh=NDHQ+SUibV7AMISaZPdXQgG/gGFCEHl3cNXmSx8zUFg=; b=tcghUDlVRd0iITOvzdZLwZmz/lM490c6s/sI/R6dXcmkDsMH1QxOCwc25B2NS9zTzy23fb 4TVMWuLIu7XSgYl8uT8TH942fx+3PBiPFS9gHtsyADL3MZAJPgnDeNSDgjZTGajzViWzYG 6FNizbWvJgCDDGaLtKJq7csyzqRRwrWG/TJoAzyjT5+OIHwbEksEdyrrj6+k+KTX/CtLft i03v8D2AtqYsGzODqYYq2dN01Qg8cZzJmhWaA+5ia1vyZZ0w0ASawXrKmuI7aUF3TaSvdc xn6800iXFWbR2ryKtUKA2sbI9IU4qpl0Af4d413xnUMaawXumb/F6b5ETXZK9A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RlVpV5ymXzgf9 for ; Tue, 12 Sep 2023 17:25:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38CHPMK5016947 for ; Tue, 12 Sep 2023 17:25:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38CHPMRT016946 for numerics@FreeBSD.org; Tue, 12 Sep 2023 17:25:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 272758] c16rtomb and c32rtomb wrong return value (at least on aarch64) Date: Tue, 12 Sep 2023 17:25:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: numerics@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272758 --- Comment #4 from Dimitry Andric --- Ugh, to make that more readable: > The initial conversion state corresponds, for a conversion in either > direction, to the beginning of a new multibyte character in the > initial shift state. A zero-valued mbstate_t object is (at least) one > way to describe an initial conversion state. A zero- valued mbstate_t > object can be used to initiate conversion involving any multibyte > character sequence, in any LC_CTYPE category setting. If an mbstate_t > object has been altered by any of the functions described in this > subclause, and is then used with a different multibyte character > sequence, or in the other conversion direction, or with a different > LC_CTYPE category setting than on earlier function calls, the behavior > is undefined. --=20 You are receiving this mail because: You are the assignee for the bug.=