[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skip filename recoding tests on MS-Windows

From: pertusus
Subject: Re: Skip filename recoding tests on MS-Windows
Date: Tue, 25 Oct 2022 14:54:04 +0200

On Tue, Oct 25, 2022 at 02:47:00PM +0300, Eli Zaretskii wrote:
> > Date: Mon, 24 Oct 2022 22:00:38 +0200
> > From: pertusus@free.fr
> > Cc: GavinSmith0123@gmail.com, bug-texinfo@gnu.org
> > 
> > >   included_latεn1.texi:4: unknown command `unknowncmd'
> > > 
> > > where the ε part is the 0xEE byte interpreted by the Windows console.
> > > 
> > > Where does this leave us?
> > 
> > The test should pass then.  Can you check
> > diff -u 
> > formatting//out_parser/manual_include_accented_file_name_latin1_explicit_encoding/
> >  
> > formatting/res_parser/manual_include_accented_file_name_latin1_explicit_encoding/
> It reports nothing (i.e., no diffs).

Then the test passed.  My wild guess is that, even though the \xFF is
interpreted in the wrong locale and the character is not î, as long as
it is wrongly interpreted consistently, it does not matter.  Windows
assumes that it is in your current codepage, although it is untrue,
while the Perl code assumes that it is considered as Latin1 by Windows,
it is also untrue, but as long as it is written and read as \xFF, it's

The formatting manual_include_accented_file_name_latin1 fails, but I
think I know why, I explained it in another mail, it is because
DOC_ENCODING_FOR_INPUT_FILE_NAME is set to 0 for Windows, which may not
be the best afterall, according to the test, because it is better to
'fool' Windows rather than get a file name with the correct characters.
You proposed to have DOC_ENCODING_FOR_INPUT_FILE_NAME set to 0 for
windows such that the codepage is used for the file names encoding, do
you still think that it is a good idea in general?  (For the test, we
can do something else, or SKIP if in Windows).

It would be nice if you could check if formatting
manual_include_accented_file_name_latin1_use_locale_encoding succeds or
fail.  Could you please run
which is somewhat verbose and check $?.  And maybe send the whole


reply via email to

[Prev in Thread] Current Thread [Next in Thread]