From 3e41a054bf85132cbc84bb59f4461387dcb31972 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 11 Aug 2013 23:51:10 +0200 Subject: [PATCH] * net/eww.el (eww-display-html): Ignore coding system errors. One web site uses "utf-8lias" as the coding system. --- lisp/ChangeLog | 5 +++++ lisp/net/eww.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac360a3e422..48b31a2d06d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-08-11 Lars Magne Ingebrigtsen + + * 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 * 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'." (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)) -- 2.11.4.GIT