From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12565 Path: news.gmane.org!.POSTED!not-for-mail From: Steffen Nurpmeso Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: iconv failure (ISO-2022-JP) since musl update on AlpineLinux Date: Tue, 27 Feb 2018 22:28:54 +0100 Message-ID: <20180227212854.Wo26a%steffen@sdaoden.eu> References: <20180227165704.vyc0m%steffen@sdaoden.eu> <20180227194432.yqIkD%steffen@sdaoden.eu> <20180227201940.GR1436@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1519824848 26029 195.159.176.226 (28 Feb 2018 13:34:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2018 13:34:08 +0000 (UTC) User-Agent: s-nail v14.9.7-9-g06c930cc To: musl@lists.openwall.com Original-X-From: musl-return-12581-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 28 14:34:03 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1er1rv-0006Tr-LQ for gllmg-musl@m.gmane.org; Wed, 28 Feb 2018 14:34:03 +0100 Original-Received: (qmail 15481 invoked by uid 550); 28 Feb 2018 13:36:06 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15454 invoked from network); 28 Feb 2018 13:36:06 -0000 In-Reply-To: <20180227201940.GR1436@brightrain.aerifal.cx> Mail-Followup-To: musl@lists.openwall.com OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Xref: news.gmane.org gmane.linux.lib.musl.general:12565 Archived-At: Hello Rich Felker. Rich Felker wrote: |On Tue, Feb 27, 2018 at 08:44:32PM +0100, Steffen Nurpmeso wrote: |> Rich Felker wrote: ... |> but i wrote: |>||After updating to musl-1.1.19-r0 there i saw test failures for the |>||MUA i maintain, namely regarding the mentioned charset. I will .. |>|Does the data round-trip correctly? I don't think you can expect |> |> Ok, i see what you mean, yes, musl iconv(1) can roundtrip. But.. ... |> Well... In my cases the MUA fails to convert to ISO-2022-JP at |> all, because an iconv(3) error happens. And when i instrument my .. |I think the test is just using an output buffer that's under the |worst-case size needed for conversion to ISO-2022-JP. The E2BIG error |is specified for "Input conversion stopped due to lack of space in the |output buffer" and is not really an error; is just means the |conversion stopped before reaching the end and you need to resume with |a new buffer for the remainder of the conversion. That iconv(3) wrapper i had hacked into that MUA in 2014 was indeed complete nonsense and entirely false. Now corrected. Thanks for answering the brain damage. And i will adjust the tests to checksum only the headers and the roundtrip output of the body content, thanks for pointing this out. Be aware you have been credited. Ciao, --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)