From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A5F23858C2C; Tue, 7 Mar 2023 20:17:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A5F23858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678220279; bh=ZLISjFP/G9qbYsHfVRdN2n0VzNbMvncNQ5CBWduTT6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qr/7JXi079YnH4Ese07YFboKjLsyVdBPF+4zqFZptARZy2Qa1Yi+LERQsv8/p+k4R uYrBXfXxkcapckp30/zOR9588ZCG8z4j+tH35uRhDJsnzw2e+jxJopfV1RNS4+C6Hj zWCaa4R/QAhVMIDnpQFWm7davonREuYPJ4hCywZg= From: "dmjpp at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108976] codecvt for Unicode allows surrogate code points Date: Tue, 07 Mar 2023 20:17:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dmjpp at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108976 --- Comment #4 from Dimitrij Mijoski --- I have fixed this, added large testsute and discovered another bug in codecvt_utf16 when the input [from, from_end) contains odd number of bytes. Error was returned instead of partial. Here are the changes in 8 commits https://github.com/gcc-mirror/gcc/compare/master...dimztimz:gcc:codecvt (re= ad from top to bottom). Do you want everything squashed in one commit or maybe some other combination?=