> Le 19 août 2021 à 09:28, Dagobert Michelsen <d...@opencsw.org> a écrit :
> 
> Hi Akim,
> 
> Am 19.08.2021 um 09:25 schrieb Akim Demaille <a...@lrde.epita.fr>:
>> Le 19 août 2021 à 09:13, Dagobert Michelsen <d...@opencsw.org> a écrit :
>>> Am 19.08.2021 um 09:03 schrieb Akim Demaille <a...@lrde.epita.fr>:
>>>> So there is something fishy going on with the nul bytes.  I don't know if 
>>>> it's in the input generated by the test suite, the processing by Bison, or 
>>>> the pricessing of the diagnostics by the test suite.
>>>> 
>>>> Could you please send tests/testsuite.dir/004/input.y as an attachment?  
>>>> The results of
>>>> 
>>>> - od -x _build/g11d/tests/testsuite.dir/004/input.y
>>>> - LC_ALL=C tests/bison  tests/testsuite.dir/004/input.y 2>log
>>>> 
>>>> could be useful too.  Thanks!
>> 
>> Actually I still need input.y as an attachment, and the 'log' file of the 
>> previous command.
> 
> Ah sorry, here they are:
> 
> <input.y><log>

This is good: the input and the output are correct.  So it's the test suite's 
post processing which is wrong.  I guess Perl does not behave the expected way. 
 Could you please give me the results (and out.1 and out.2) of:

perl --version
perl -p -e 's{([\0\200\210\360\377])}{sprintf "\\x%02x", ord($1)}ge' <log >out.1
perl -p -e 's{([\000\200\210\360\377])}{sprintf "\\x%02x", ord($1)}ge' <log 
>out.2

where log is the previous log file (from LC_ALL=C tests/bison  
tests/testsuite.dir/004/input.y 2>log).

Thanks!

Reply via email to