]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_coding_utf_16): Fix typo counting odd bytes.
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 15 Jun 2009 21:36:44 +0000 (21:36 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 15 Jun 2009 21:36:44 +0000 (21:36 +0000)
src/ChangeLog
src/coding.c

index 373341d39ae9d2188ad74a321602eacafa1d1a0a..bc4ce2aa0afa67af88cd226119c9d82d5ccb6fd9 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
+
 2009-06-15  Kenichi Handa  <handa@m17n.org>
 
        * process.c (status_message): Fix previous change.  Be sure to
index aeb2b3554938887c3c6c60e9e00e0921af1333f1..8c43929693e2bd745f7aefb21547834c4a41aedd 100644 (file)
@@ -1682,7 +1682,7 @@ detect_coding_utf_16 (coding, detect_info)
            }
          if (! o[c2])
            {
-             o[c1] = 1;
+             o[c2] = 1;
              o_num++;
              if (o_num >= 128)
                break;