diff options
| author | Kenichi Handa | 2008-02-05 04:12:52 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-02-05 04:12:52 +0000 |
| commit | 69b8522de8408ba8403e74cdc21c6b241072af90 (patch) | |
| tree | 109f8b0628e549830dd03f02a2df4e6ea691de3d /src/coding.c | |
| parent | 7d1d1c16cd061fa4c2d128085184f7872f0423a6 (diff) | |
| download | emacs-69b8522de8408ba8403e74cdc21c6b241072af90.tar.gz emacs-69b8522de8408ba8403e74cdc21c6b241072af90.zip | |
(decode_eol): Pay attention to coding->dst_multibyte.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 89a3090fa56..7e9a497f1e5 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5717,7 +5717,10 @@ decode_eol (coding) | |||
| 5717 | pos_end--; | 5717 | pos_end--; |
| 5718 | } | 5718 | } |
| 5719 | pos++; | 5719 | pos++; |
| 5720 | pos_byte += BYTES_BY_CHAR_HEAD (*p); | 5720 | if (coding->dst_multibyte) |
| 5721 | pos_byte += BYTES_BY_CHAR_HEAD (*p); | ||
| 5722 | else | ||
| 5723 | pos_byte++; | ||
| 5721 | } | 5724 | } |
| 5722 | } | 5725 | } |
| 5723 | coding->produced -= n; | 5726 | coding->produced -= n; |