From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Yates Newsgroups: gmane.emacs.devel Subject: Re: Add a predicate for canonical file name Date: Fri, 14 Oct 2016 17:39:39 -0400 Message-ID: References: <838tux9h3c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114401f039cdf7053eda10ae X-Trace: blaine.gmane.org 1476481240 30333 195.159.176.226 (14 Oct 2016 21:40:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2016 21:40:40 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 14 23:40:36 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvAD9-0004pq-Qr for ged-emacs-devel@m.gmane.org; Fri, 14 Oct 2016 23:40:15 +0200 Original-Received: from localhost ([::1]:49543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvAD8-00035E-DP for ged-emacs-devel@m.gmane.org; Fri, 14 Oct 2016 17:40:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvACc-000355-QF for emacs-devel@gnu.org; Fri, 14 Oct 2016 17:39:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvACa-00049i-Ii for emacs-devel@gnu.org; Fri, 14 Oct 2016 17:39:41 -0400 Original-Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]:35582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvACa-00048k-Cv for emacs-devel@gnu.org; Fri, 14 Oct 2016 17:39:40 -0400 Original-Received: by mail-io0-x22b.google.com with SMTP id i202so134212914ioi.2 for ; Fri, 14 Oct 2016 14:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dRUr07WbNs6rH2NGpJMfk6cCocKBaHu+jj1uE1hHV7g=; b=vquqdLEI+LSJNYtPqW37QZwH67DXN36OofxOdjIlyw8GVcWaA/BCwUS6cyGjsofDUA vT7kXtjCCCR0R+pa0h4N1VnAwDXUcXSJnOq+o+aKFRRHewjGcc1qSdkrfzBqQetSY4po oCPLK+n7FIRy7RKUHEspHDPfGbNTw6iGLd6CO7+ky4pMOmwluzXTzoCckeiYTRL1/Omt DZc9ifZpUloPZBO/wCQ5xcby6PmztIZw26QwdSUZ+K2yjTzE8x5daMtnM0huZqjWHkt8 YNejZMI18PdqxmCEJDTefozdlhX7fidUpYausEBc82oHadHvk1PesIFWB/6Qh5yKKKxw StJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=dRUr07WbNs6rH2NGpJMfk6cCocKBaHu+jj1uE1hHV7g=; b=OF2QobHOGaiEL3IK+6rVANzE4v3w9GuLDf75S3yojBof51xzBqOuRpUI3lyxHMaRLw 3/BE9IAizrRKIQq9dkTQcb2lowYQoHuSi+cKLUi6yPczqQ6mmbIO5uNLfOQv/WOtDUiR 6F3TND6rpGTlq9q3NHyLiC3csV4Ws5VTliploMTm01Pm7HdsChmNgF0gxlAzyPsG4+vD tvHSUwOjKMXOXWMkvzT5ls2X5L2erR0ocBX9Vv9AnkSQ7YOr9T/WYjeqsZqE3TTV3dJe 8FlVAjNZUDDDjb53eUyEfEqqxUzumkzl7SJ5IrW6jCDDXau+A1CTpQ56M2KzalAPj5uR 5wgw== X-Gm-Message-State: AA6/9RlN8tmi1uNzZZGvrLH/IN+xb9om/7jsuUGppOVeRapkqNeBLLq1jgzEB664A6ND1h2gTIqKrUWjpRMQxA== X-Received: by 10.107.51.82 with SMTP id z79mr12582339ioz.225.1476481179567; Fri, 14 Oct 2016 14:39:39 -0700 (PDT) Original-Received: by 10.64.108.135 with HTTP; Fri, 14 Oct 2016 14:39:39 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: LPQOzpLQ1EGL9Uj23hyRzkziPzA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:208259 Archived-At: --001a114401f039cdf7053eda10ae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Sep 12, 2016 at 4:01 PM, Stefan Monnier wrote: > I can see several different meanings of "canonical", i.e. representative > member of an equivalence class (and I'd be inclined to prefer a function > that checks for "equivalence" between two file names rather than > a function that tries to find one canonical name). =E2=80=8BA further wrinkle arises from Unicode normalization. IIRC Linux u= ses NFC, MacOS uses NFD. /john=E2=80=8B --001a114401f039cdf7053eda10ae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Se= p 12, 2016 at 4:01 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
I can see seve= ral different meanings of "canonical", i.e. representative
member of an equivalence class (and I'd be inclined to prefer a functio= n
that checks for "equivalence" between two file names rather than<= br> a function that tries to find one canonical name).

=E2=80=8BA further wrinkle arises from Unicode normalization.=C2= =A0 IIRC Linux uses NFC,
MacOS uses NFD.

/john= =E2=80=8B

--001a114401f039cdf7053eda10ae--