diff options
| author | Kenichi Handa | 2002-05-07 04:49:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-05-07 04:49:14 +0000 |
| commit | 66b820bac0c14afc75f8ff5d6b1d0fbda88d5078 (patch) | |
| tree | 4a8ed58265ade2a321964b4fa7409d9ab783e2ba | |
| parent | 7c9e10248b5a50cd12cd48bf5bc91b81556c9a13 (diff) | |
| download | emacs-66b820bac0c14afc75f8ff5d6b1d0fbda88d5078.tar.gz emacs-66b820bac0c14afc75f8ff5d6b1d0fbda88d5078.zip | |
(titdic-convert): Read into a unibyte buffer then make the buffer
multibyte.
| -rw-r--r-- | lisp/international/titdic-cnv.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el index 93313428099..1950a8febf8 100644 --- a/lisp/international/titdic-cnv.el +++ b/lisp/international/titdic-cnv.el | |||
| @@ -470,11 +470,11 @@ the generated Quail package is saved." | |||
| 470 | (set-buffer-file-coding-system 'iso-2022-7bit) | 470 | (set-buffer-file-coding-system 'iso-2022-7bit) |
| 471 | (let ((standard-output (current-buffer))) | 471 | (let ((standard-output (current-buffer))) |
| 472 | (with-temp-buffer | 472 | (with-temp-buffer |
| 473 | (set-buffer-multibyte nil) | ||
| 473 | (let ((coding-system-for-read 'no-conversion)) | 474 | (let ((coding-system-for-read 'no-conversion)) |
| 474 | (insert-file-contents (expand-file-name filename))) | 475 | (insert-file-contents (expand-file-name filename))) |
| 475 | (set-buffer-multibyte t) | ||
| 476 | 476 | ||
| 477 | ;; Decode the buffer contents from the encoding specified by a | 477 | ;; Decode the buffer contents from the encoding specified by a |
| 478 | ;; value of the key "ENCODE:". | 478 | ;; value of the key "ENCODE:". |
| 479 | (if (not (search-forward "\nBEGIN" nil t)) | 479 | (if (not (search-forward "\nBEGIN" nil t)) |
| 480 | (error "TIT dictionary doesn't have body part")) | 480 | (error "TIT dictionary doesn't have body part")) |
| @@ -494,6 +494,7 @@ the generated Quail package is saved." | |||
| 494 | (goto-char (point-min)) | 494 | (goto-char (point-min)) |
| 495 | (decode-coding-region (point-min) (point-max) coding-system)) | 495 | (decode-coding-region (point-min) (point-max) coding-system)) |
| 496 | 496 | ||
| 497 | (set-buffer-multibyte t) | ||
| 497 | ;; Set point the starting position of the body part. | 498 | ;; Set point the starting position of the body part. |
| 498 | (goto-char (point-min)) | 499 | (goto-char (point-min)) |
| 499 | (if (not (search-forward "\nBEGIN" nil t)) | 500 | (if (not (search-forward "\nBEGIN" nil t)) |