From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11816 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: man-db 2.7.6.1: Test failures under musl libc Date: Mon, 14 Aug 2017 19:55:27 -0400 Message-ID: <20170814235527.GT1627@brightrain.aerifal.cx> References: <5992359F.5010801@adelielinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1502754940 24630 195.159.176.226 (14 Aug 2017 23:55:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2017 23:55:40 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11829-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 15 01:55:37 2017 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 1dhPCp-00067h-Rh for gllmg-musl@m.gmane.org; Tue, 15 Aug 2017 01:55:35 +0200 Original-Received: (qmail 20355 invoked by uid 550); 14 Aug 2017 23:55:40 -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 20324 invoked from network); 14 Aug 2017 23:55:39 -0000 Content-Disposition: inline In-Reply-To: <5992359F.5010801@adelielinux.org> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11816 Archived-At: On Mon, Aug 14, 2017 at 06:43:27PM -0500, A. Wilcox wrote: > Hello, >=20 > We are creating a new Linux distribution based on the musl libc focused > on security and reliability. As such, we run test suites for all of our > packaged software. The man-db test suite seems to have numerous > failures due to musl's iconv(3) (or more specifically, iconv_open(3)) > method not supporting //IGNORE suffixes for character sets. I'm not clear what it's trying to do with //IGNORE or why it wants it: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > man-db 2.7.6.1: src/tests/test-suite.log > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > # TOTAL: 24 > # PASS: 20 > # SKIP: 0 > # XFAIL: 0 > # FAIL: 4 > # XPASS: 0 > # ERROR: 0 >=20 > .. contents:: :depth: 2 >=20 > FAIL: man-6 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > No manual entry for test > FAIL: missing locales > FAIL man-6 (exit status: 1) >=20 > FAIL: manconv-1 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > lt-manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument > --- /tmp/tmp.Z13DSCRrAK/1.exp 2017-08-14 23:36:45.092587088 +0000 > +++ /tmp/tmp.Z13DSCRrAK/1.out 2017-08-14 23:36:45.092587088 +0000 > @@ -1,2 +0,0 @@ > -'\" -*- coding: ISO-8859-1 > -?? Here the "//IGNORE" seems to be on the destination charset, and the source charset, ISO-8859-1, does not have any illegal bytes/sequences, so it's not clear what they're even trying to achieve. I think it's just a wrong test but maybe you have some more insight? > --- /tmp/tmp.SkB1onmT18/2.exp 2017-08-14 23:36:45.502586346 +0000 > +++ /tmp/tmp.SkB1onmT18/2.out 2017-08-14 23:36:45.502586346 +0000 > @@ -1,2 +0,0 @@ > -????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????????????????????????????????????????????= ??????????????????????????????????????????????????????? > -???????? > FAIL: -f UTF-8:KOI8-R -t UTF-8 on KOI8-R input with UTF-8 prefix > PASS: -f UTF-8:ISO-8859-1 -t UTF-8 preserves UTF-8 input > lt-manconv: iconv_open ("ISO-8859-2//IGNORE", "UTF-8"): Invalid argument > lt-manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-2"): Invalid argument This is the only one that seems to be different, trying to do some sort of round trip test? > --- /tmp/tmp.SkB1onmT18/4.exp 2017-08-14 23:36:45.702585984 +0000 > +++ /tmp/tmp.SkB1onmT18/4.out 2017-08-14 23:36:45.702585984 +0000 > @@ -1 +0,0 @@ > -?? > FAIL: recognises input encoding and omits invalid output character > lt-manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-7"): Invalid argument > PASS: copes with invalid input characters > FAIL manconv-2 (exit status: 1) Not sure if this is any different. > FAIL: manconv-3 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > lt-manconv: iconv_open ("UTF-8//IGNORE", "EUC-JP"): Invalid argument > FAIL: incomplete character at EOF > FAIL manconv-3 (exit status: 1) >=20 Looks like just the //IGNORE issue again. Not clear if it's supposed to do anything useful in this case. Rich