diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/coding.c | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1143ea96633..d06237d7a04 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | ||
| 2 | |||
| 3 | * coding.c (record_conversion_result): Handle | ||
| 4 | CODING_RESULT_INSUFFICIENT_DST. | ||
| 5 | (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on | ||
| 6 | memory allocation error. | ||
| 7 | |||
| 1 | 2010-02-17 Kenichi Handa <handa@m17n.org> | 8 | 2010-02-17 Kenichi Handa <handa@m17n.org> |
| 2 | 9 | ||
| 3 | * coding.c (decode_coding_ccl): Don't setup ccl program here. Fix | 10 | * coding.c (decode_coding_ccl): Don't setup ccl program here. Fix |
diff --git a/src/coding.c b/src/coding.c index 879cae56194..2144fe5fcd4 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -993,6 +993,11 @@ record_conversion_result (struct coding_system *coding, | |||
| 993 | case CODING_RESULT_INSUFFICIENT_MEM: | 993 | case CODING_RESULT_INSUFFICIENT_MEM: |
| 994 | Vlast_code_conversion_error = Qinsufficient_memory; | 994 | Vlast_code_conversion_error = Qinsufficient_memory; |
| 995 | break; | 995 | break; |
| 996 | case CODING_RESULT_INSUFFICIENT_DST: | ||
| 997 | /* Don't record this error in Vlast_code_conversion_error | ||
| 998 | because it happens just temporarily and is resolved when the | ||
| 999 | whole conversion is finished. */ | ||
| 1000 | break; | ||
| 996 | case CODING_RESULT_SUCCESS: | 1001 | case CODING_RESULT_SUCCESS: |
| 997 | break; | 1002 | break; |
| 998 | default: | 1003 | default: |
| @@ -7865,7 +7870,7 @@ decode_coding_object (coding, src_object, from, from_byte, to, to_byte, | |||
| 7865 | if (! destination) | 7870 | if (! destination) |
| 7866 | { | 7871 | { |
| 7867 | record_conversion_result (coding, | 7872 | record_conversion_result (coding, |
| 7868 | CODING_RESULT_INSUFFICIENT_DST); | 7873 | CODING_RESULT_INSUFFICIENT_MEM); |
| 7869 | unbind_to (count, Qnil); | 7874 | unbind_to (count, Qnil); |
| 7870 | return; | 7875 | return; |
| 7871 | } | 7876 | } |