On Tue, Apr 04, 2023 at 12:48:14PM +0200, Patrice Dumas wrote: > On Tue, Apr 04, 2023 at 10:59:53AM +0100, Gavin Smith wrote: > > On Tue, Apr 04, 2023 at 09:35:07AM +0200, Arash Esbati wrote: > > > Eli Zaretskii <e...@gnu.org> writes: > > > > > > > ??? What is your console output codepage set to? > > > > > > C:\>chcp > > > Aktive Codepage: 850. > > > > The use of the codepage 850 instead of what 'locale' reports likely > > comes from these lines in texi2any.pl: > > I think that I did that for the 7 release, based on some code found on > internet, but I do not really understand what it does.
It came from Eli: https://lists.gnu.org/archive/html/bug-texinfo/2022-10/msg00175.html https://lists.gnu.org/archive/html/bug-texinfo/2022-10/msg00177.html It seems to be for a valid purpose. > > > if (!defined($locale_encoding) and $^O eq 'MSWin32') { > > eval 'require Win32::API'; > > if (!$@) { > > Win32::API::More->Import("kernel32", "int GetACP()"); > > my $CP = GetACP(); > > if (defined($CP)) { > > $locale_encoding = 'cp'.$CP; > > } > > } > > }