From: Bruno Haible Date: Mon, 15 Dec 2003 14:16:17 +0000 (+0000) Subject: Fix bug in handling of backslashed double-quotes inside single-quoted strings. X-Git-Tag: v0.13.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03f76f1e4067184cf66a54b278082c42ec29f68f;p=thirdparty%2Fgettext.git Fix bug in handling of backslashed double-quotes inside single-quoted strings. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 43b2b4b03..3c7709823 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,8 @@ +2003-12-14 Bruno Haible + + * x-sh.c (phase2_getc): Call phase1_ungetc instead of phase2_ungetc: + The next phase2_getc invocation must return QUOTED('"'), not '"'. + 2003-12-14 Bruno Haible * x-c.c (phase7_getc): Remove dead code. diff --git a/gettext-tools/src/x-sh.c b/gettext-tools/src/x-sh.c index de634065e..9efbb6ded 100644 --- a/gettext-tools/src/x-sh.c +++ b/gettext-tools/src/x-sh.c @@ -586,7 +586,7 @@ phase2_getc () { if (count > open_doublequotes_mask) { - phase2_ungetc (c); + phase1_ungetc (c); return '\\'; } else