diff options
| author | Andrew Innes | 1999-05-02 09:48:22 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-05-02 09:48:22 +0000 |
| commit | 07a96c46096bd5478d6cfee5c341d20d76455a6c (patch) | |
| tree | cef691bb6af63147e13d8a32eed0d8408b3a5c5d | |
| parent | 105adfb54f0ea72314c4bc40dfe531902f36a68e (diff) | |
| download | emacs-07a96c46096bd5478d6cfee5c341d20d76455a6c.tar.gz emacs-07a96c46096bd5478d6cfee5c341d20d76455a6c.zip | |
(cp-coding-system-for-codepage-1):
Make the magnification parameter for the -dos encoder be 2.
| -rw-r--r-- | lisp/international/codepage.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/international/codepage.el b/lisp/international/codepage.el index b71bfdc65bb..1d7631bc4b7 100644 --- a/lisp/international/codepage.el +++ b/lisp/international/codepage.el | |||
| @@ -88,7 +88,11 @@ variety is actually just an alias for the -unix variety)." | |||
| 88 | (repeat))))) | 88 | (repeat))))) |
| 89 | (ccl-encoder-dos | 89 | (ccl-encoder-dos |
| 90 | (ccl-compile | 90 | (ccl-compile |
| 91 | `(1 (loop (read-multibyte-character r0 r1) | 91 | ;; The 2 here supplies the buf_magnification parameter for |
| 92 | ;; the CCL program. Since the -dos coding system generates | ||
| 93 | ;; \r\n for each \n, a factor of 2 covers even the worst case | ||
| 94 | ;; of empty lines with a single \n. | ||
| 95 | `(2 (loop (read-multibyte-character r0 r1) | ||
| 92 | (if (r1 == ?\n) | 96 | (if (r1 == ?\n) |
| 93 | (write ?\r) | 97 | (write ?\r) |
| 94 | (if (r0 != ,(charset-id 'ascii)) | 98 | (if (r0 != ,(charset-id 'ascii)) |