From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: eww doesn't decode %AA%BB%CC URL names Date: Thu, 24 Dec 2015 22:04:08 +0100 Organization: Programmerer Ingebrigtsen Message-ID: <87k2o3pnhz.fsf@gnus.org> References: <83r3n0llkt.fsf@gnu.org> <87vb7nsq1g.fsf@gnus.org> <83ziwzmzyp.fsf@gnu.org> <8760znslig.fsf@gnus.org> <83twn7myin.fsf@gnu.org> <87bn9fr59a.fsf@gnus.org> <87vb7npogq.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450991076 2386 80.91.229.3 (24 Dec 2015 21:04:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 21:04:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 24 22:04:27 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aCD3i-0001xO-Dn for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 22:04:26 +0100 Original-Received: from localhost ([::1]:33417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCD3h-0001Ky-RZ for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 16:04:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCD3d-0001KU-BM for emacs-devel@gnu.org; Thu, 24 Dec 2015 16:04:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCD3Z-0005zq-Aw for emacs-devel@gnu.org; Thu, 24 Dec 2015 16:04:21 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCD3Z-0005zV-3d for emacs-devel@gnu.org; Thu, 24 Dec 2015 16:04:17 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aCD3Y-0001hh-0n for emacs-devel@gnu.org; Thu, 24 Dec 2015 22:04:16 +0100 Original-Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Dec 2015 22:04:16 +0100 Original-Received: from larsi by 2.150.58.24.tmi.telenormobil.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Dec 2015 22:04:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.150.58.24.tmi.telenormobil.no Mail-Copies-To: never User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:dn6dFva5rig/3g3o84RdvGwW4p0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196802 Archived-At: After spelunking down into `set-language-environment', it seems like it's the setting of `default-file-name-coding-system' that's the problem here: (encode-coding-string (decode-coding-string (url-unhex-string "%D0%A1%D0%B5%D1%80%D0%B4%D1%86%D0%B5") 'utf-8) default-file-name-coding-system) => " " So I guess the file name should remain those percentages if it can't be encoded using that... but how do I check that, then? :-) Charsets are hard! -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no