diff options
| author | Eli Zaretskii | 2006-04-10 19:34:25 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-04-10 19:34:25 +0000 |
| commit | 8bca692e7e827cfb71fa368bbbace7b30e5d77e2 (patch) | |
| tree | 69832a469314c901d462f5bc32d739f35375d7f2 | |
| parent | 888046a687cd6e1344673fbf2fe4dd85230e7d02 (diff) | |
| download | emacs-8bca692e7e827cfb71fa368bbbace7b30e5d77e2.tar.gz emacs-8bca692e7e827cfb71fa368bbbace7b30e5d77e2.zip | |
(set-locale-environment): Fix last change for when the locale's preferences
don't specify any encoding.
| -rw-r--r-- | lisp/international/mule-cmds.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 17004f6bcd5..69dbb5c2445 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2526,7 +2526,9 @@ See also `locale-charset-language-names', `locale-language-names', | |||
| 2526 | ;; If a specific EOL conversion was specified in the default | 2526 | ;; If a specific EOL conversion was specified in the default |
| 2527 | ;; buffer-file-coding-system, preserve it in the coding system | 2527 | ;; buffer-file-coding-system, preserve it in the coding system |
| 2528 | ;; we will be using from now on. | 2528 | ;; we will be using from now on. |
| 2529 | (if (memq default-eol-type '(0 1 2 unix dos mac)) | 2529 | (if (and (memq default-eol-type '(0 1 2 unix dos mac)) |
| 2530 | coding-system | ||
| 2531 | (coding-system-p coding-system)) | ||
| 2530 | (setq coding-system (coding-system-change-eol-conversion | 2532 | (setq coding-system (coding-system-change-eol-conversion |
| 2531 | coding-system default-eol-type))) | 2533 | coding-system default-eol-type))) |
| 2532 | 2534 | ||