]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-locale-environment): Don't warn if coding system doesn't agree with system
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 8 Apr 2008 14:57:02 +0000 (14:57 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 8 Apr 2008 14:57:02 +0000 (14:57 +0000)
locale (this reverts changes by Dave Love, dated 2002-10-27 and 2002-10-09).

lisp/ChangeLog
lisp/international/mule-cmds.el

index fd1cee13b1e2010dd7039f7a76d158fbf1ff2d52..c36567aac20ab59b66fa7610dd4c691b73825539 100644 (file)
@@ -1,5 +1,9 @@
 2008-04-08  Juanma Barranquero  <lekktu@gmail.com>
 
+       * international/mule-cmds.el (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).
+
        * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
        * emacs-lisp/cl-macs.el (get-setf-method): Use `string-match-p'.
 
index 2ce56546bfe6afa6a4466eda296dcc99cfef2904..a04ffe18772e323926ea86358fdbaf15764dbe85 100644 (file)
@@ -2605,21 +2605,7 @@ See also `locale-charset-language-names', `locale-language-names',
          ;; Fixme: perhaps prefer-coding-system should set this too.
          ;; But it's not the time to do such a fundamental change.
          (setq default-sendmail-coding-system coding-system)
-         (setq locale-coding-system coding-system))
-
-       (when (get-language-info current-language-environment 'coding-priority)
-         (let ((codeset (locale-info 'codeset))
-               (coding-system (car (coding-system-priority-list))))
-           (when codeset
-             (let ((cs (coding-system-aliases coding-system))
-                   result)
-               (while (and cs (not result))
-                 (setq result
-                       (locale-charset-match-p (symbol-name (pop cs))
-                                               (locale-info 'codeset))))
-               (unless result
-                 (message "Warning: Default coding system `%s' disagrees with
-system codeset `%s' for this locale." coding-system codeset))))))))
+         (setq locale-coding-system coding-system))))
 
     ;; On Windows, override locale-coding-system,
     ;; default-file-name-coding-system, keyboard-coding-system,