Mercurial > emacs
comparison lisp/international/mule-cmds.el @ 93865:b9a2a750f172
(set-locale-environment): Don't warn if coding system doesn't agree with system
locale (this reverts changes by Dave Love, dated 2002-10-27 and 2002-10-09).
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 08 Apr 2008 14:55:30 +0000 |
parents | 79b4e32b9b79 |
children | 889bc336b89b |
comparison
equal
deleted
inserted
replaced
93864:a238cf768432 | 93865:b9a2a750f172 |
---|---|
2603 locale-coding-system))) | 2603 locale-coding-system))) |
2604 (prefer-coding-system coding-system) | 2604 (prefer-coding-system coding-system) |
2605 ;; Fixme: perhaps prefer-coding-system should set this too. | 2605 ;; Fixme: perhaps prefer-coding-system should set this too. |
2606 ;; But it's not the time to do such a fundamental change. | 2606 ;; But it's not the time to do such a fundamental change. |
2607 (setq default-sendmail-coding-system coding-system) | 2607 (setq default-sendmail-coding-system coding-system) |
2608 (setq locale-coding-system coding-system)) | 2608 (setq locale-coding-system coding-system)))) |
2609 | |
2610 (when (get-language-info current-language-environment 'coding-priority) | |
2611 (let ((codeset (locale-info 'codeset)) | |
2612 (coding-system (car (coding-system-priority-list)))) | |
2613 (when codeset | |
2614 (let ((cs (coding-system-aliases coding-system)) | |
2615 result) | |
2616 (while (and cs (not result)) | |
2617 (setq result | |
2618 (locale-charset-match-p (symbol-name (pop cs)) | |
2619 (locale-info 'codeset)))) | |
2620 (unless result | |
2621 (message "Warning: Default coding system `%s' disagrees with | |
2622 system codeset `%s' for this locale." coding-system codeset)))))))) | |
2623 | 2609 |
2624 ;; On Windows, override locale-coding-system, | 2610 ;; On Windows, override locale-coding-system, |
2625 ;; default-file-name-coding-system, keyboard-coding-system, | 2611 ;; default-file-name-coding-system, keyboard-coding-system, |
2626 ;; terminal-coding-system with system codepage. | 2612 ;; terminal-coding-system with system codepage. |
2627 (when (boundp 'w32-ansi-code-page) | 2613 (when (boundp 'w32-ansi-code-page) |