From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22222: 24.4; eww ignores charset=utf-8 in text/plain Date: Tue, 22 Dec 2015 19:03:17 +0200 Message-ID: <83a8p2quui.fsf@gnu.org> References: <87d1tzw29f.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1450805129 22676 80.91.229.3 (22 Dec 2015 17:25:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2015 17:25:29 +0000 (UTC) Cc: 22222@debbugs.gnu.org To: trentbuck@gmail.com (Trent W. Buck), Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 22 18:25:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aBQgX-0006H5-2F for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Dec 2015 18:25:17 +0100 Original-Received: from localhost ([::1]:52069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQgW-0001ZB-Aw for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Dec 2015 12:25:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQL5-0005UW-OL for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBQL0-0003JF-PR for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:03:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQL0-0003JA-Lj for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aBQL0-0006ME-Dy for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2015 12:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Dec 2015 17:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22222 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22222-submit@debbugs.gnu.org id=B22222.145080377824427 (code B ref 22222); Tue, 22 Dec 2015 17:03:02 +0000 Original-Received: (at 22222) by debbugs.gnu.org; 22 Dec 2015 17:02:58 +0000 Original-Received: from localhost ([127.0.0.1]:60135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBQKv-0006Lv-Ea for submit@debbugs.gnu.org; Tue, 22 Dec 2015 12:02:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45433) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBQKt-0006Lj-Bh for 22222@debbugs.gnu.org; Tue, 22 Dec 2015 12:02:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBQKj-0003HU-68 for 22222@debbugs.gnu.org; Tue, 22 Dec 2015 12:02:50 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBQKj-0003HQ-3D; Tue, 22 Dec 2015 12:02:45 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1585 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aBQKh-0007Tm-Gy; Tue, 22 Dec 2015 12:02:44 -0500 In-reply-to: <87d1tzw29f.fsf@gmail.com> (trentbuck@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110282 Archived-At: > From: trentbuck@gmail.com (Trent W. Buck) > Date: Tue, 22 Dec 2015 15:11:56 +1100 > > In #emacs on Freenode, "snotglob" reported that > > When I open this doc with eww > https://raw.githubusercontent.com/howardabrams/pdx-emacs-hackers/master/workshops/keyboard-macros.org > it appears that some apostrophes are shown as \342\200\231 > > I can reproduce his fault. It's not that EWW ignored the charset, but it did pretty strange things with its value, and with decoding of the text in general. I believe I fixed that in commit 9b0f182 on the emacs-25 branch. Lars, I'd appreciate if you could eyeball the changeset and tell if I broke some use case. I couldn't wrap my head around the code there that decoded stuff (like encoding with UTF-8 and then decoding with something that must NOT be UTF-8 -- how can that do anything useful?), so I just rewrote that as best I could. If I broke something, please show the broken use case, and I will look into it. Thanks.