Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 20 Sep 2020 21:21:48 +0200
From: Bruno Haible <>
To: Rich Felker <>
Cc: "Dmitry V. Levin" <>,,
Subject: Re: Re: OS detection wrong on Alpine Linux 3.10


POSIX — like many other standard — allows different implementations to
behave differently. For example, iconv_open() and setlocale() behave
differently in different POSIX-compliant libc implementations. This is
OK. There is nothing wrong with it on either side.

Unit tests [1] need to take into account the actual behaviour of the
software. It is normal that a unit test's core function produces a
different result with musl than with glibc. The "expected outcome"
part of the unit test, in this case, needs to be different. This is
an actual, practical need to know whether the config triple ends in
linux-gnu vs. linux-musl.

> There is one kinda legitimate purpose for detecting specifically musl:

It is not your role to tell us which code we write is "legitimate" and
which code is not. I am a grown-up programmer.



Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.