diff options
| author | Kenichi Handa | 2006-11-22 01:03:19 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-11-22 01:03:19 +0000 |
| commit | db9aec4708266a6926ec048c409c93d420d2b5eb (patch) | |
| tree | e41b7e93067726d55372600c1b8aef77f87b9c63 | |
| parent | eeb7eaa88482114822730380196f4e7a3c0870dd (diff) | |
| download | emacs-db9aec4708266a6926ec048c409c93d420d2b5eb.tar.gz emacs-db9aec4708266a6926ec048c409c93d420d2b5eb.zip | |
(set-default-coding-systems): Sync
with HEAD.
| -rw-r--r-- | lisp/international/mule-cmds.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 3eebb3e7b51..8f0de253a15 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -340,9 +340,13 @@ This also sets the following values: | |||
| 340 | (or (local-variable-p 'buffer-file-coding-system buffer) | 340 | (or (local-variable-p 'buffer-file-coding-system buffer) |
| 341 | (ucs-set-table-for-input buffer)))) | 341 | (ucs-set-table-for-input buffer)))) |
| 342 | 342 | ||
| 343 | (if (and default-enable-multibyte-characters (not (eq system-type 'darwin))) | 343 | (if (eq system-type 'darwin) |
| 344 | ;; The file-name coding system on Darwin systems is always utf-8. | 344 | ;; The file-name coding system on Darwin systems is always utf-8. |
| 345 | (setq default-file-name-coding-system coding-system)) | 345 | (setq default-file-name-coding-system 'utf-8) |
| 346 | (if (and default-enable-multibyte-characters | ||
| 347 | (or (not coding-system) | ||
| 348 | (coding-system-get coding-system 'ascii-compatible-p))) | ||
| 349 | (setq default-file-name-coding-system coding-system))) | ||
| 346 | ;; If coding-system is nil, honor that on MS-DOS as well, so | 350 | ;; If coding-system is nil, honor that on MS-DOS as well, so |
| 347 | ;; that they could reset the terminal coding system. | 351 | ;; that they could reset the terminal coding system. |
| 348 | (unless (and (eq window-system 'pc) coding-system) | 352 | (unless (and (eq window-system 'pc) coding-system) |