diff options
| author | Kenichi Handa | 2002-05-14 11:51:08 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-14 11:51:08 +0000 |
| commit | 8c2fc3113421adfb4db33064fc54569ffedfa6b5 (patch) | |
| tree | bed1fc66092a7723d5926c38a878d9f3b97bceb5 /src | |
| parent | c0cc7f7f490eb48a74caf75444dc8532e36ab2ca (diff) | |
| download | emacs-8c2fc3113421adfb4db33064fc54569ffedfa6b5.tar.gz emacs-8c2fc3113421adfb4db33064fc54569ffedfa6b5.zip | |
(Fset_buffer_multibyte): Convert 8-bit bytes to
multibyte form correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/buffer.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6172430e19a..9a7a6bc650b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,11 +1,16 @@ | |||
| 1 | 2002-05-14 Kenichi Handa <handa@etl.go.jp> | 1 | 2002-05-14 Kenichi Handa <handa@etl.go.jp> |
| 2 | 2 | ||
| 3 | * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | ||
| 4 | multibyte form correctly. | ||
| 5 | |||
| 3 | * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | 6 | * fontset.c (fs_load_font): Check fontp->full_name (not fontname) |
| 4 | against Vfont_encoding_alist. | 7 | against Vfont_encoding_alist. |
| 5 | 8 | ||
| 6 | * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | 9 | * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the |
| 7 | handling of charset list. | 10 | handling of charset list. |
| 8 | (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | 11 | (encode_coding_iso_2022): Setup coding->safe_charsets in advance. |
| 12 | (decode_coding_object): Move point to coding->dst_pos before | ||
| 13 | calling post-read-conversion function. | ||
| 9 | 14 | ||
| 10 | * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | 15 | * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). |
| 11 | 16 | ||
diff --git a/src/buffer.c b/src/buffer.c index fd53972d6b1..b9c5c2acc52 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2161,8 +2161,9 @@ but the contents viewed as characters do change. */) | |||
| 2161 | else | 2161 | else |
| 2162 | { | 2162 | { |
| 2163 | unsigned char tmp[MAX_MULTIBYTE_LENGTH]; | 2163 | unsigned char tmp[MAX_MULTIBYTE_LENGTH]; |
| 2164 | int c = BYTE8_TO_CHAR (*p); | ||
| 2164 | 2165 | ||
| 2165 | bytes = CHAR_STRING (*p, tmp); | 2166 | bytes = CHAR_STRING (c, tmp); |
| 2166 | *p = tmp[0]; | 2167 | *p = tmp[0]; |
| 2167 | TEMP_SET_PT_BOTH (pos + 1, pos + 1); | 2168 | TEMP_SET_PT_BOTH (pos + 1, pos + 1); |
| 2168 | bytes--; | 2169 | bytes--; |