On Sat, Nov 01, 2025 at 09:40:55PM +0100, Patrice Dumas wrote:
> On Sat, Nov 01, 2025 at 12:18:22AM +0100, Patrice Dumas wrote:
> > So, my proposal would be
> > * always keep the leading directories in source_info.  This should be
> >   the main place where the file names for error messages are kept, but
> >   there could be others, for instance in HTML converter code when
> >   parsing CSS files, I do not remember if source_info is used.
> > * replace Data::Dumper based representation of errors by a simpler text.
> >   This makes sense independently of this issue as it is better to avoid
> >   using Data::Dumper to have the same representation in Perl and C.
> 
> I implemented it, it looks good.  It is something that we cannot test in
> the usual tests, I did not feel like adding a specific test for that.

Thanks for doing that so quickly.  I made a start on it myself but had
quite a lot left to work out.  (I hadn't used fileparse in parse_texi_file
to set 'input_file_name' on the 'global_info', and then had problems in
Texinfo::Convert::Convert::determine_files_and_directory with extra levels
of directories being created, as well as with file paths changing in error
messages in the test results.)

Reply via email to