changeset 106826:64cd76243389

Fix handling of euc-xx coding systems.
author Kenichi Handa <handa@m17n.org>
date Thu, 14 Jan 2010 20:31:16 +0900
parents f8aafba5ed54
children 834bde7f6c34 1562bc1aa080
files src/ChangeLog src/coding.c
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:31:16 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:31:16 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++;
 		    }