aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c
index a161f5a34cd..b3a51eb0c4c 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1,8 +1,8 @@
1/* Coding system handler (conversion, detection, etc). 1/* Coding system handler (conversion, detection, etc).
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2 Copyright (C) 2001, 2002, 2003, 2004, 2005,
3 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 3 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
5 2005, 2006, 2007, 2008, 2009 5 2005, 2006, 2007, 2008, 2009, 2010
6 National Institute of Advanced Industrial Science and Technology (AIST) 6 National Institute of Advanced Industrial Science and Technology (AIST)
7 Registration Number H14PRO021 7 Registration Number H14PRO021
8 Copyright (C) 2003 8 Copyright (C) 2003
@@ -3239,9 +3239,13 @@ detect_coding_iso_2022 (coding, detect_info)
3239 int i = 1; 3239 int i = 1;
3240 while (src < src_end) 3240 while (src < src_end)
3241 { 3241 {
3242 src_base = src;
3242 ONE_MORE_BYTE (c); 3243 ONE_MORE_BYTE (c);
3243 if (c < 0xA0) 3244 if (c < 0xA0)
3244 break; 3245 {
3246 src = src_base;
3247 break;
3248 }
3245 i++; 3249 i++;
3246 } 3250 }
3247 3251