|
Message-ID: <1714550.SfedhZ9LKS@omega>
Date: Sat, 24 Feb 2018 10:31:55 +0100
From: Bruno Haible <bruno@...sp.org>
To: musl@...ts.openwall.com
Cc: bug-gnulib@....org
Subject: test-getopt-posix fails on musl
Hi,
On Alpine Linux 3.7.0, which uses musl libc, the gnulib test 'test-getopt-posix'
fails. To me, this looks like a POSIX compliance bug of musl.
Find attached a reduced test case.
$ gcc foo.c -Wall
$ ./a.ou t
foo.c:134: assertion 'options[0] == ':' || ((options[0] == '-' || options[0] == '+') && options[1] == ':')' failed
Reference: POSIX
http://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html
View attachment "foo.c" of type "text/x-csrc" (5279 bytes)
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.