mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: man-db 2.7.6.1: Test failures under musl libc
Date: Mon, 14 Aug 2017 19:55:27 -0400	[thread overview]
Message-ID: <20170814235527.GT1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <5992359F.5010801@adelielinux.org>

On Mon, Aug 14, 2017 at 06:43:27PM -0500, A. Wilcox wrote:
> Hello,
> 
> 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:

> ==============================================
>    man-db 2.7.6.1: src/tests/test-suite.log
> ==============================================
> 
> # TOTAL: 24
> # PASS:  20
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  4
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> FAIL: man-6
> ===========
> 
> No manual entry for test
>   FAIL: missing locales
> FAIL man-6 (exit status: 1)
> 
> FAIL: manconv-1
> ===============
> 
> 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
> ===============
> 
> lt-manconv: iconv_open ("UTF-8//IGNORE", "EUC-JP"): Invalid argument
>   FAIL: incomplete character at EOF
> FAIL manconv-3 (exit status: 1)
> 

Looks like just the //IGNORE issue again. Not clear if it's supposed
to do anything useful in this case.

Rich


  reply	other threads:[~2017-08-14 23:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-14 23:43 A. Wilcox
2017-08-14 23:55 ` Rich Felker [this message]
2017-08-15  0:02   ` A. Wilcox
2017-08-26 12:04 ` Colin Watson
2017-08-26 13:28   ` Rich Felker
2017-08-26 15:13     ` Colin Watson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170814235527.GT1627@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).