]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mule-tests under en_US.UTF-8 locale
authorEli Zaretskii <eliz@gnu.org>
Wed, 15 Feb 2023 19:00:54 +0000 (21:00 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 15 Feb 2023 19:00:54 +0000 (21:00 +0200)
* test/lisp/international/mule-tests.el (sgml-html-meta-utf-8):
Accept also utf-8-unix/dos/whatever.  (Bug#61534)

* lisp/international/mule.el
(sgml-html-meta-auto-coding-function): Fix comparison when
buffer-file-coding-system is of type 'charset'.

lisp/international/mule.el
test/lisp/international/mule-tests.el

index 52019697ad7b4cd47aa5d6833de9717370f67ed8..25b90b49c8f9331784f5a7815f0dd781e26c46be 100644 (file)
@@ -2544,6 +2544,7 @@ This function is intended to be added to `auto-coding-functions'."
                        ;; coding-system-equal, since it isn't a
                        ;; coding-system.  So test that up front.
                        (not (equal sym-type 'charset))
+                       (not (equal bfcs-type 'charset))
                        (coding-system-equal 'utf-8 sym-type)
                        (coding-system-equal 'utf-8 bfcs-type))
                   buffer-file-coding-system
index 6e23d8c5421f2a3995e597aefa713e52432656c0..6b76e35ae22f1fcc658a794f0802fe38f9339862 100644 (file)
@@ -99,7 +99,7 @@ provide HTML fragments.  Some tests override those variables."
 
 (ert-deftest sgml-html-meta-utf-8 ()
   "Baseline: UTF-8."
-  (should (eq 'utf-8 (sgml-html-meta-run "utf-8"))))
+  (should (eq 'utf-8 (coding-system-base (sgml-html-meta-run "utf-8")))))
 
 (ert-deftest sgml-html-meta-windows-hebrew ()
   "A non-Unicode charset."