emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/coding.c


From: Kenichi Handa
Subject: [Emacs-diffs] Changes to emacs/src/coding.c
Date: Wed, 31 Jul 2002 03:09:00 -0400

Index: emacs/src/coding.c
diff -c emacs/src/coding.c:1.251 emacs/src/coding.c:1.252
*** emacs/src/coding.c:1.251    Fri Jul 19 10:26:57 2002
--- emacs/src/coding.c  Fri Jul 26 07:53:25 2002
***************
*** 1349,1354 ****
--- 1349,1355 ----
    while (mask && src < src_end)
      {
        ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
+     retry:
        switch (c)
        {
        case ISO_CODE_ESC:
***************
*** 1523,1528 ****
--- 1524,1531 ----
                  && mask & CODING_CATEGORY_MASK_ISO_8_2)
                {
                  int i = 1;
+ 
+                 c = -1;
                  while (src < src_end)
                    {
                      ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
***************
*** 1535,1540 ****
--- 1538,1546 ----
                    mask &= ~CODING_CATEGORY_MASK_ISO_8_2;
                  else
                    mask_found |= CODING_CATEGORY_MASK_ISO_8_2;
+                 if (c >= 0)
+                   /* This means that we have read one extra byte.  */
+                   goto retry;
                }
            }
          break;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]