Patch from Andy Wingo to always escape ? to avoid accidentally generating

Tue Oct  1 17:35:43 2002  Owen Taylor  <otaylor@redhat.com>

        * gdkpixdata.c: Patch from Andy Wingo to always
        escape ? to avoid accidentally generating trigraphs
        in the output (#94631)
This commit is contained in:
Owen Taylor 2002-10-01 21:42:36 +00:00 committed by Owen Taylor
parent 2eb145c26f
commit 352b72d2f2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Tue Oct 1 17:35:43 2002 Owen Taylor <otaylor@redhat.com>
* gdkpixdata.c: Patch from Andy Wingo to always
escape ? to avoid accidentally generating trigraphs
in the output (#94631)
2002-09-28 Tor Lillqvist <tml@iki.fi>
* pixops/*.S: Don't use .type on Cygwin, either (#91597, Masahiro

View File

@ -505,7 +505,7 @@ save_uchar (CSourceData *cdata,
cdata->pad = FALSE;
}
}
if (d < 33 || d > 126)
if (d < 33 || d > 126 || d == '?')
{
APPEND (gstring, "\\%o", d);
cdata->pos += 1 + 1 + (d > 7) + (d > 63);