]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix bug in handling of backslashed double-quotes inside single-quoted strings.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Dec 2003 14:16:17 +0000 (14:16 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:30 +0000 (12:11 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/x-sh.c

index 43b2b4b031a795d169b478fc92362751446da56e..3c77098231e970165df3ef50e1e5046300ef135e 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-14  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
        * x-c.c (phase7_getc): Remove dead code.
index de634065e4ca46f664158a436b4d5757b23a7f65..9efbb6dedc324e0c2defb33aa3c45d1c6636ecd4 100644 (file)
@@ -586,7 +586,7 @@ phase2_getc ()
            {
              if (count > open_doublequotes_mask)
                {
-                 phase2_ungetc (c);
+                 phase1_ungetc (c);
                  return '\\';
                }
              else