bug-texinfo
[Top][All Lists]

## Re: pdfeTeX error when compiling lilypond.texi with accents in node name

 From: Oleg Katsitadze Subject: Re: pdfeTeX error when compiling lilypond.texi with accents in node names Date: Wed, 27 Jun 2007 00:07:37 +0300 User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Jun 26, 2007 at 12:23:33AM +0200, John Mandereau wrote:
> Here's attached an almost minimal example showing the problem.  If you
> replace the umlaut-U with U, texi2pdf successfully compiles it.

Thanks again for the short example, now it makes sense.  The problem
lies in the fact that @macro expands (\xdef's) the body without
taking care to avoid expansion of the (active) non-ASCII characters.
I believe the problem is not limited to UTF-8, but to any non-ASCII
encoding.

The patch I attach avoids this expansion, but I'm not sure this
doesn't break something else.  So I'm afraid we'll have to wait for
Karl's opinion, whenever he has time to look into this.

Best,
Oleg

P.S.  I'm not sure if \setnonasciicharscatcode really needs to set
catcodes globally.  Can it ever be called from inside a group?  If
not, we can simply remove \global from it, and thus avoid the need for
\setnonasciicharscatcodenonglobal.  Or maybe just copy the loop from
\setnonasciicharscatcodenonglobal inside \scanctxt.

patch
Description: Text document