[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Accents in menus
From: |
Karl Berry |
Subject: |
Re: Accents in menus |
Date: |
Wed, 25 Jan 2006 19:05:46 -0600 |
The following file triggers an assertion with CVS Makeinfo with
--no-headers.
Well, it took me a while to figure out what was happening where, but I
think this small change (now checked in) fixes it.
Thanks,
Karl
--- lang.c.~1.16.~ 2005-05-14 17:00:07.000000000 -0700
+++ lang.c 2006-01-25 17:02:44.000000000 -0800
@@ -792,9 +792,14 @@
+/* If END is zero, there is nothing in the paragraph to accent. This
+ can happen when we're in a menu with an accent command and
+ --no-headers is given, so the base character is not added. In this
+ case we're not producing any output anyway, so just forget it.
+ Otherwise, produce the ASCII version of the accented char. */
static void
cm_accent_generic_no_headers (int arg, int start, int end, int single,
char *html_solo)
{
- if (arg == END)
+ if (arg == END && end > 0)
{
if (no_encoding)