From: Andreas Schwab Date: Mon, 15 Jun 2009 21:36:44 +0000 (+0000) Subject: (detect_coding_utf_16): Fix typo counting odd bytes. X-Git-Tag: emacs-pretest-23.0.95~46 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=977b85f4d91050c0e35bcd88768d906c1df25af7;p=emacs.git (detect_coding_utf_16): Fix typo counting odd bytes. --- diff --git a/src/ChangeLog b/src/ChangeLog index 373341d39ae..bc4ce2aa0af 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-06-15 Andreas Schwab + + * coding.c (detect_coding_utf_16): Fix typo counting odd bytes. + 2009-06-15 Kenichi Handa * process.c (status_message): Fix previous change. Be sure to diff --git a/src/coding.c b/src/coding.c index aeb2b355493..8c43929693e 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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;