* net/eww.el (eww-display-html): Ignore coding system errors.

One web site uses "utf-8lias" as the coding system.
This commit is contained in:
Lars Magne Ingebrigtsen 2013-08-11 23:51:10 +02:00
parent 6edea0a595
commit 3e41a054bf
2 changed files with 8 additions and 1 deletions

View 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.

View 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))