On Thu, Jan 22, 2026 at 03:19:08PM +0200, Eli Zaretskii wrote: > > From: Gavin Smith <[email protected]> > > Date: Wed, 21 Jan 2026 19:56:50 +0000 > > Cc: [email protected] > > > > On Sat, Jan 17, 2026 at 09:28:30AM +0200, Eli Zaretskii wrote: > > > If the above doesn't produce any problems (except with occasional wide > > > characters), then it's an easy solution, I think. And we could even > > > do better if in the "UTF-8 initial byte" clause we compute the Unicode > > > codepoint of the character and call wcwidth (which on Windows will > > > call the Gnulib wcwidth and on other systems will DTRT since the above > > > code should only be used when the locale's codeset is UTF-8). > > > > > > > We could add an Info variable to customize this behaviour. > > > > > > That'd be great, thanks. Would it be possible to add that in this > > > release? > > > > Here's a more finished patch. It would be fine to include this in the > > next release if you can confirm that it works acceptably. > > Thanks, this seems to work well in my testing (I paged through the > ELisp manual, which uses Unicode characters). "make check" also > succeeds if I add "raw-utf8-output=On" to info/t/config/texinfo/infokey.
If you want to test on an Info file with chinese characters there is such an Info file at tta/perl/t/results/info_tests/chinese_mixed_with_en_EUC_CN/res_info/chinese_mixed_with_en_EUC_CN.info -- Pat
