[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid inputs FAILED (input.at:102) on Solaris
From: |
Akim Demaille |
Subject: |
Re: Invalid inputs FAILED (input.at:102) on Solaris |
Date: |
Tue, 8 Dec 2020 07:55:08 +0100 |
Hi Martin,
> Le 7 déc. 2020 à 17:47, Martin Rehak <martin.rehak@oracle.com> a écrit :
>
> Hi Akim,
>
>> Once compiled, src/mbcat should imitate what bison does when it quotes
>> the input. So could you feed it with tests/testsuite.dir/004/input.y
>> and see what difference there is between the input and the output?
>>
>> ./src/mbcat tests/testsuite.dir/004/input.y >/tmp/out.y
>> diff tests/testsuite.dir/004/input.y /tmp/out.y
>>
>> And if there are diffs, try to make them visible (cat -v for instance).
>> Or attach /tmp/out.y.
>
> So I am puzzled even more.
>
> $ ./src/mbcat tests/testsuite.dir/004/input.y >/tmp/out.y
> $ diff tests/testsuite.dir/004/input.y /tmp/out.y
> $ echo $?
> 0
This is probably related to the current locale. Could you also try
with LC_ALL=C set in your environment? It will probably not change
anything because mbcat does not call setlocale. I have uploaded a
new tarball with it. Please, try the same procedure with:
https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.4.154-1bbfe.tar.gz
https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.4.154-1bbfe.tar.lz
https://www.lrde.epita.fr/~akim/private/bison/bison-3.7.4.154-1bbfe.tar.xz
with both your default locale, and with LC_ALL forced to C.
Thanks a lot for keeping up with this!