From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: fixing url-unhex-string for unicode/multi-byte charsets Date: Sun, 08 Nov 2020 08:39:33 -0500 Message-ID: References: <20201106074742.jq3h4uujm7oce7af@E15-2016.optimum.net> <83wnyy9akw.fsf@gnu.org> <20201106102756.e2ctvpjruenatud5@E15-2016.optimum.net> <83pn4q8zdz.fsf@gnu.org> <20201106122846.unoizvad53blgncf@E15-2016.optimum.net> <83lffe8v92.fsf@gnu.org> <83eel68r2y.fsf@gnu.org> <20201108091216.xug4neeem7iuayhq@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="361"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Boruch Baum Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 08 14:41:33 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbkwn-000AZc-CV for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Nov 2020 14:41:33 +0100 Original-Received: from localhost ([::1]:36612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbkwk-0005wM-Ns for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Nov 2020 08:41:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbkux-0004mq-Ss for emacs-devel@gnu.org; Sun, 08 Nov 2020 08:39:40 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:35377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbkuv-0005KQ-Lh; Sun, 08 Nov 2020 08:39:39 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3DDC0100257; Sun, 8 Nov 2020 08:39:36 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E676810023D; Sun, 8 Nov 2020 08:39:34 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1604842774; bh=1QixMxhh5v38xMbMGDcVYBx8/eE2OCMMRJfb/ORw5cM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=FUkcBSxtWuPf7mDUw0jFgC7hoZeVdOolNg2Ny84WjUVz4BQfIh/EcXbYqNYgJE/8m E0qdUvBmoACVsoRvQtdF/qsiZ58xfIaTEC27cnwdj/6f/CVJh3gdQ8FBN60DNlUpIG 9bNeJ+2iuMBNl4xBspMPYpeLq4KLSCKABfyu+3X+7vbq4PLAbQg8ojpcbYnobPgTBB O0qqjMHGABoz7hjnF6U0c45DMQMn0Syu2qQ2xbIyM7SJd6KJQSrO+R9Lq9kuXiYYCC 1JL6Hf4ReoxADt+Xv8eX33Op7hSDMKFrHclJ0sZY/Jl0xthtbk9F58UTjPUvtvheMM SCRpfNDp3awXQ== Original-Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B10001202F7; Sun, 8 Nov 2020 08:39:34 -0500 (EST) In-Reply-To: <20201108091216.xug4neeem7iuayhq@E15-2016.optimum.net> (Boruch Baum's message of "Sun, 8 Nov 2020 04:12:16 -0500") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 08:39:36 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258894 Archived-At: >> > My guess is that his `file-name-coding-system` is set to something >> > different from utf-8. > > That's correct, kind of. The setting isn't 'mine', its the emacs > default. In both emacs 26.1 (debian) and emacs-snapshot (v28), > file-name-coding-system defaults to nil, and > default-file-name-coding-system defaults to utf-8-unix, so we have: > > file-name-coding-system =3D> nil > (default-value file-name-coding-system) =3D> nil > default-file-name-coding-system =3D> utf-8-unix This means your file name coding system *is* set to utf-8, so that doesn't explain the problem. > "The value type for this key is =E2=80=9Cstring=E2=80=9D; it SHOULD st= ore the file > name as the sequence of bytes produced by the file system, with > characters escaped as in URLs (as defined by RFC 2396, section 2)." Thanks. So we should indeed obey `file-name-coding-system`. Stefan