aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2013-08-11 23:51:10 +0200
committerLars Magne Ingebrigtsen2013-08-11 23:51:10 +0200
commit3e41a054bf85132cbc84bb59f4461387dcb31972 (patch)
tree3236cb96dc6fd7a7f3d3abb2462b3b3f784b516b
parent6edea0a595d292c4d3f1a7e862195be07c874e40 (diff)
downloademacs-3e41a054bf85132cbc84bb59f4461387dcb31972.tar.gz
emacs-3e41a054bf85132cbc84bb59f4461387dcb31972.zip
* net/eww.el (eww-display-html): Ignore coding system errors.
One web site uses "utf-8lias" as the coding system.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/eww.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ac360a3e422..48b31a2d06d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * net/eww.el (eww-display-html): Ignore coding system errors. One
4 web site uses "utf-8lias" as the coding system.
5
12013-08-11 Juanma Barranquero <lekktu@gmail.com> 62013-08-11 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil. 8 * frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 70c11c3201f..a689ff2ae9f 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -199,7 +199,9 @@ word(s) will be searched for via `eww-search-prefix'."
199 199
200(defun eww-display-html (charset url) 200(defun eww-display-html (charset url)
201 (unless (eq charset 'utf8) 201 (unless (eq charset 'utf8)
202 (decode-coding-region (point) (point-max) charset)) 202 (condition-case nil
203 (decode-coding-region (point) (point-max) charset)
204 (coding-system-error nil)))
203 (let ((document 205 (let ((document
204 (list 206 (list
205 'base (list (cons 'href url)) 207 'base (list (cons 'href url))