diff options
| author | Kenichi Handa | 2007-02-14 01:30:39 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-02-14 01:30:39 +0000 |
| commit | f9362982d8416065a2bd4b49a266c843737954ba (patch) | |
| tree | 0166e0b72812a4b0fe65d5bd673c71c4d070f7bc | |
| parent | e9c7952945f26b1b3a9a2865c4fc755bc675a321 (diff) | |
| download | emacs-f9362982d8416065a2bd4b49a266c843737954ba.tar.gz emacs-f9362982d8416065a2bd4b49a266c843737954ba.zip | |
Synch with HEAD.
| -rw-r--r-- | lisp/international/titdic-cnv.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el index b97a781ff8e..fe645011e74 100644 --- a/lisp/international/titdic-cnv.el +++ b/lisp/international/titdic-cnv.el | |||
| @@ -479,7 +479,9 @@ the generated Quail package is saved." | |||
| 479 | (let ((standard-output (current-buffer))) | 479 | (let ((standard-output (current-buffer))) |
| 480 | (with-temp-buffer | 480 | (with-temp-buffer |
| 481 | (set-buffer-multibyte nil) | 481 | (set-buffer-multibyte nil) |
| 482 | (let ((coding-system-for-read 'no-conversion)) | 482 | ;; Here we must use `raw-text' instead of `no-conversion' to |
| 483 | ;; enable auto-decoding of eol format (CRLF->LF). | ||
| 484 | (let ((coding-system-for-read 'raw-text)) | ||
| 483 | (insert-file-contents (expand-file-name filename))) | 485 | (insert-file-contents (expand-file-name filename))) |
| 484 | 486 | ||
| 485 | ;; Decode the buffer contents from the encoding specified by a | 487 | ;; Decode the buffer contents from the encoding specified by a |
| @@ -501,7 +503,9 @@ the generated Quail package is saved." | |||
| 501 | (message "Decoding with coding system %s..." coding-system) | 503 | (message "Decoding with coding system %s..." coding-system) |
| 502 | (goto-char (point-min)) | 504 | (goto-char (point-min)) |
| 503 | (decode-coding-region (point-min) (point-max) coding-system) | 505 | (decode-coding-region (point-min) (point-max) coding-system) |
| 504 | (setq coding-system-for-write coding-system) | 506 | ;; Explicitly set eol format to `unix'. |
| 507 | (setq coding-system-for-write | ||
| 508 | (coding-system-change-eol-conversion coding-system 'unix)) | ||
| 505 | (remove-text-properties (point-min) (point-max) '(charset nil))) | 509 | (remove-text-properties (point-min) (point-max) '(charset nil))) |
| 506 | 510 | ||
| 507 | (set-buffer-multibyte t) | 511 | (set-buffer-multibyte t) |
| @@ -1143,7 +1147,9 @@ the generated Quail package is saved." | |||
| 1143 | converter (nth 5 slot) | 1147 | converter (nth 5 slot) |
| 1144 | copyright (nth 6 slot)) | 1148 | copyright (nth 6 slot)) |
| 1145 | (message "Converting %s to %s..." dicfile quailfile) | 1149 | (message "Converting %s to %s..." dicfile quailfile) |
| 1146 | (setq coding-system-for-write coding) | 1150 | ;; Explicitly set eol format to `unix'. |
| 1151 | (setq coding-system-for-write | ||
| 1152 | (coding-system-change-eol-conversion coding 'unix)) | ||
| 1147 | (with-temp-file (expand-file-name quailfile dirname) | 1153 | (with-temp-file (expand-file-name quailfile dirname) |
| 1148 | (insert (format ";; Quail package `%s' -*- coding:%s; " name coding)) | 1154 | (insert (format ";; Quail package `%s' -*- coding:%s; " name coding)) |
| 1149 | (insert "byte-compile-disable-print-circle:t; -*-\n") | 1155 | (insert "byte-compile-disable-print-circle:t; -*-\n") |