* net/eww.el (eww-display-html): Ignore coding system errors.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 11 Aug 2013 21:51:10 +0000 (23:51 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 11 Aug 2013 21:51:10 +0000 (23:51 +0200)
One web site uses "utf-8lias" as the coding system.

lisp/ChangeLog
lisp/net/eww.el

index ac360a3..48b31a2 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * net/eww.el (eww-display-html): Ignore coding system errors.  One
+       web site uses "utf-8lias" as the coding system.
+
 2013-08-11  Juanma Barranquero  <lekktu@gmail.com>
 
        * frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.
index 70c11c3..a689ff2 100644 (file)
@@ -199,7 +199,9 @@ word(s) will be searched for via `eww-search-prefix'."
 
 (defun eww-display-html (charset url)
   (unless (eq charset 'utf8)
-    (decode-coding-region (point) (point-max) charset))
+    (condition-case nil
+       (decode-coding-region (point) (point-max) charset)
+      (coding-system-error nil)))
   (let ((document
         (list
          'base (list (cons 'href url))