aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-03-11 01:13:03 +0000
committerKaroly Lorentey2004-03-11 01:13:03 +0000
commit9fcd266514218d2d1bc9f30c9fcfdcf5eb356e1c (patch)
treef882cb87dea7776ba5868b689d542838197b6641 /src
parent2666355c452f1b1502752b7b1095a4eca16e9449 (diff)
parentbdfd0369ce065c4ed22cf74c6f32c6a081eca56f (diff)
downloademacs-9fcd266514218d2d1bc9f30c9fcfdcf5eb356e1c.tar.gz
emacs-9fcd266514218d2d1bc9f30c9fcfdcf5eb356e1c.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-141 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-142 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-143 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-144 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-145 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-115
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c21
2 files changed, 24 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bb8ef04bc67..95cec4f1f14 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-03-09 Kenichi Handa <handa@etlken2>
2
3 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4 correctly.
5
12004-03-04 Richard M. Stallman <rms@gnu.org> 62004-03-04 Richard M. Stallman <rms@gnu.org>
2 7
3 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition. 8 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
diff --git a/src/coding.c b/src/coding.c
index 62c761c5bcf..76ef3026a2d 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1024,9 +1024,26 @@ decode_coding_emacs_mule (coding, source, destination, src_bytes, dst_bytes)
1024 } 1024 }
1025 else 1025 else
1026 { 1026 {
1027 bytes = CHAR_STRING (*src, tmp); 1027 int i, c;
1028 p = tmp; 1028
1029 bytes = BYTES_BY_CHAR_HEAD (*src);
1029 src++; 1030 src++;
1031 for (i = 1; i < bytes; i++)
1032 {
1033 ONE_MORE_BYTE (c);
1034 if (CHAR_HEAD_P (c))
1035 break;
1036 }
1037 if (i < bytes)
1038 {
1039 bytes = CHAR_STRING (*src_base, tmp);
1040 p = tmp;
1041 src = src_base + 1;
1042 }
1043 else
1044 {
1045 p = src_base;
1046 }
1030 } 1047 }
1031 if (dst + bytes >= (dst_bytes ? dst_end : src)) 1048 if (dst + bytes >= (dst_bytes ? dst_end : src))
1032 { 1049 {