changeset 106828:1562bc1aa080

Fix handling of euc-xx coding systems.
author Kenichi Handa <handa@m17n.org>
date Thu, 14 Jan 2010 20:51:58 +0900
parents f8aafba5ed54 (current diff) 64cd76243389 (diff)
children e9774faca8a4 cfacf49bd905
files
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jan 13 22:13:16 2010 -0800
+++ b/src/ChangeLog	Thu Jan 14 20:51:58 2010 +0900
@@ -1,3 +1,8 @@
+2010-01-14  Kenichi Handa  <handa@m17n.org>
+
+	* coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
+	systems.
+
 2010-01-14  Kenichi Handa  <handa@m17n.org>
 
 	Make auto-composition work on all buffers even if they are
--- a/src/coding.c	Wed Jan 13 22:13:16 2010 -0800
+++ b/src/coding.c	Thu Jan 14 20:51:58 2010 +0900
@@ -3239,9 +3239,13 @@
 		  int i = 1;
 		  while (src < src_end)
 		    {
+		      src_base = src;
 		      ONE_MORE_BYTE (c);
 		      if (c < 0xA0)
-			break;
+			{
+			  src = src_base;
+			  break;
+			}
 		      i++;
 		    }