Subject: bug#18974: grep-2.20 test-mbrtowc3.sh fails on Solaris without European localization

From: Norihiro Tanaka <[email-masked]>
Date: Fri, 07 Nov 2014 23:44:27 +0900

Kiyoshi KANAZAWA <[email-masked]> wrote:
> Hello,
> 
> On Solaris 10 x86/x64,
> "test-mbrtowc3.sh" fails if European localization is not installed.
> It passes with European localization.
> 
> This is the common test-suite bug in
> diffutils-3.3, grep-2.20, libunistring-0.9.4 and m4-1.4.17.
> 
> --- Kiyoshi <[email-masked]>

If second argument `s' to mbrtowc is NULL, first argument `pwc' should
not be changed, but it seems that it is changed into L'\0' on Solaris 10.

--
test-mbrtowc.c:116: assertion 'wc == (wchar_t) 0xBADFACE' failed
Abort - core dumped
FAIL test-mbrtowc3.sh (exit status: 134)
--