From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12555 Path: news.gmane.org!.POSTED!not-for-mail From: Steffen Nurpmeso Newsgroups: gmane.linux.lib.musl.general Subject: Re: iconv failure (ISO-2022-JP) since musl update on AlpineLinux Date: Tue, 27 Feb 2018 20:44:32 +0100 Message-ID: <20180227194432.yqIkD%steffen@sdaoden.eu> References: <20180227165704.vyc0m%steffen@sdaoden.eu> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1519760568 13832 195.159.176.226 (27 Feb 2018 19:42:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 19:42:48 +0000 (UTC) User-Agent: s-nail v14.9.7-9-g06c930cc To: musl@lists.openwall.com Original-X-From: musl-return-12571-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 27 20:42:44 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 1eql9A-0003GG-I5 for gllmg-musl@m.gmane.org; Tue, 27 Feb 2018 20:42:44 +0100 Original-Received: (qmail 17447 invoked by uid 550); 27 Feb 2018 19:44:48 -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 17409 invoked from network); 27 Feb 2018 19:44:47 -0000 In-Reply-To: <20180227165704.vyc0m%steffen@sdaoden.eu> Mail-Followup-To: musl@lists.openwall.com, Steffen Nurpmeso 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:12555 Archived-At: Hi. Rich Felker wrote: sorry i did not get this :) 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 ||attach a file to reproduce. (Am not subscribed.) ... || #?0[steffen@devon steffen]$ cksum in.utf=20 || 1259742080 686 in.utf || #?0[steffen@devon steffen]$ iconv -f utf8 -t iso-2022-jp \n",(int)*inbleft,*inb); sz =3D iconv(cd, __INBCAST(inb), inbleft, outb, outbleft); if(sz > 0 && !(icf & n_ICONV_IGN_NOREVERSE)){ fprintf(stderr, "iconv(3) returned 0x%lX: %s\n",(ul_i)sz,strerror(errno)); err =3D n_ERR_NOENT; goto jleave; } if(sz !=3D (size_t)-1) break; then i get #?1[steffen@essex nail.git]$ v mae-test-behave_iconv_mbyte_base64-2 ICONV 2 iconv(3): in 220 out: 427 in<=E3=82=B7=E3=82=B8=E3=83=A5=E3=82=A6=E3=82=AB=E3=83=A9=E7=A7=91= =EF=BC=88=E3=82=B7=E3=82=B8=E3=83=A5=E3=82=A6=E3=82=AB=E3=83=A9=E3=81=8B=E3= =80=81=E5=AD=A6=E5=90=8D Paridae=EF=BC=89=E3=81=AF=E3=80=81=E9=B3=A5=E9=A1= =9E=E3=82=B9=E3=82=BA=E3=83=A1=E7=9B=AE=E3=81=AE=E7=A7=91=E3=81=A7=E3=81=82= =E3=82=8B=E3=80=82=E3=82=B7=E3=82=B8=E3=83=A5=E3=82=A6=E3=82=AB=E3=83=A9=EF= =BC=88=E5=9B=9B=E5=8D=81=E9=9B=80=EF=BC=89=E3=81=A8=E7=B7=8F=E7=A7=B0=E3=81= =95=E3=82=8C=E3=82=8B=E3=81=8C=E3=80=81=E7=8B=AD=E7=BE=A9=E3=81=AB=E3=81=AF= =E3=81=93=E3=81=AE1=E7=A8=AE=E3=82=92=E3=82=B7=E3=82=B8=E3=83=A5=E3=82=A6= =E3=82=AB=E3=83=A9=E3=81=A8=E5=91=BC=E3=81=B6=E3=80=82 > iconv(3) returned 0xFFFFFFFFFFFFFFFF: Argument list too long ICONV 2 err: 2 And that is somehow ooops? Interestingly if i call iconv(1) only on these 220 bytes i can roundtrip that, too. Hmmm. ... I thought maybe it is because of the tcc(1) compiler i use, but i can reproduce this with AlpineLinux gcc(1), too. I don't know. 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)