From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C05683858D38; Sun, 19 Feb 2023 00:40:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C05683858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676767222; bh=rv/UqXehwUN/hGu8W3LmwA7+Ncj3q/VC1D/eFDvsjgA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lhmg9YRiZuuO6Y6KQnV8ac5u3J1tCzVGKZadiP74i2oPMrIQaze1raElj47bA+PbJ R2eY9oho/ERVTgfh1ku3/MUlvNen14A7/MWhUajSbeotLSUNFuGMkNQpCunS9RKVJG WtHxlOVq7W06jHfCaEAMuD2kC+ci/UXNL2lxp43I= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/29913] iconv(3) is not POSIX compliant, and does not conform to linux man-pages manual Date: Sun, 19 Feb 2023 00:40:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- 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: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29913 Bruno Haible changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno at clisp dot org --- Comment #4 from Bruno Haible --- > i have reported this in the past but the issue was closed. This was in https://sourceware.org/bugzilla/show_bug.cgi?id=3D22908 . Pleas= e mark this bug as related to #22908. > POSIX defined EILSEQ only for > > [EILSEQ] Input conversion stopped due to an input byte that does not bel= ong to the input codeset. This sentence only means that when /input conversion stopped due to an input byte that does not belong to the input codeset/, the function shall fail wi= th error EILSEQ. It does *not* forbid the function to fail with error EILSEQ f= or other reasons. It also does *not* forbid the function to fail with other er= ror values for other reasons. This is not specific to iconv; it holds for all functions specified by POSI= X. See https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/V2_c= hap01.html section 1.2. > The Linux man-pages 6.01 manual (2022=E2=80=9010=E2=80=9009) says the sam= e. Nope, it does not say so. According to your interpretation, where this man = page says "The conversion can stop for four reasons" you would like to add a 5th case. According to my interpretation of the man page (and I wrote that man page originally), "An invalid multibyte sequence is encountered in the input" may also - depending on the implementation - include the case of input that can= not be meaningfully converted, neither in a reversible nor in a nonreversible w= ay. In summary: Please close this ticket as INVALID. --=20 You are receiving this mail because: You are on the CC list for the bug.=