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: Sat, 15 Oct 2016 20:02:25 -0400 Message-ID: References: <838tux9h3c.fsf@gnu.org> <87k2d9b48y.fsf@Niukka.kon.iki.fi> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c19e34caac380053ef02c14 X-Trace: blaine.gmane.org 1476576215 12349 195.159.176.226 (16 Oct 2016 00:03:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2016 00:03:35 +0000 (UTC) Cc: Emacs developers , Richard Stallman , Stefan Monnier To: Kalle Olavi Niemitalo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 16 02:03:31 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 1bvYuu-0007lt-Oo for ged-emacs-devel@m.gmane.org; Sun, 16 Oct 2016 02:03:04 +0200 Original-Received: from localhost ([::1]:54474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvYuw-00048U-De for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2016 20:03:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvYuL-00048N-7j for emacs-devel@gnu.org; Sat, 15 Oct 2016 20:02:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvYuK-0000wt-EU for emacs-devel@gnu.org; Sat, 15 Oct 2016 20:02:29 -0400 Original-Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:38219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvYuJ-0000vv-0L; Sat, 15 Oct 2016 20:02:27 -0400 Original-Received: by mail-it0-x22a.google.com with SMTP id o19so21715108ito.1; Sat, 15 Oct 2016 17:02:26 -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=cftLiTZ6woPorbY5X78Nr9qEWoN+NYf+Hl4G/z7SPms=; b=GxVpOHCHWQlGBFDIeSfDlvOx9rL8W4Q6ZWgAnk776zKFwVhPcgxNnZ6AZmInBGrO7q oAoDAb8FsUjSXH1sn57c8cXztHBAy+CBNDhi3kV3wkdpwCdeCtmb+Sbu+A2Udh7CQx/R 9nfD1Xbw4PBqDnil8RSFuk8CTA8uIcmZZegUKyF3kJ08tEq9xdcW8r0lNAzt23m7LMWp cLFLxjjKvU7Tfhk7OPgpeaf8sljATRHHKTz/NaWHwl4pB8XXNO1akSG+LEzmeH2XfxER JaEztw2xMFzlwlpqKla8ZORLQT3sa/SvMWXvb5T8IZK2bdPfLYcKi2+MzPH0TbiNY5KP +ayw== 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=cftLiTZ6woPorbY5X78Nr9qEWoN+NYf+Hl4G/z7SPms=; b=Xasg77iKsO+Ty5ZaGqSGrQs0M3tVKVhhO6rdeIiHGKYmIsteMSIt/a5+TDgVBccaiV CxEu9PJsv2AnyMK92bTtj6IE1wdRNLZxKYVGhCdMzM9+fQp7xyJR/OtYtx/l61jkUMJj qFG6jB+Dj6P33PZBK0kTAhhxlTQuzgl01fF2379Fj8zSoEwR6MZuUAwf61DQLM17kTfX 3o0POm76FK9VTqyDj+pW77b6YR6qjc/eHBuzcSV8bZTYpT3NchQKTB1hy+7AEhUWBuxc y8BKDwPzar5AIu8lj/EjwoFMTnwBmm9FgcyYuWmRFqwTuihNk0nuJCuc9/5arAlj0l9X 72wg== X-Gm-Message-State: AA6/9RkzTaF9VGgg0FLTilefaOn98ODdNXkOBYmTtxuliy4/2CRds+sT9gFFjV2FLKc6r3Ek4uF20nra0S7pAg== X-Received: by 10.36.189.73 with SMTP id x70mr3295575ite.19.1476576146012; Sat, 15 Oct 2016 17:02:26 -0700 (PDT) Original-Received: by 10.64.108.135 with HTTP; Sat, 15 Oct 2016 17:02:25 -0700 (PDT) In-Reply-To: <87k2d9b48y.fsf@Niukka.kon.iki.fi> X-Google-Sender-Auth: r2BA00-Ee51rDnMnGlE8McS9r08 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::22a 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:208314 Archived-At: --94eb2c19e34caac380053ef02c14 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Oct 15, 2016 at 7:07 PM, Kalle Olavi Niemitalo wrote: > Richard Stallman writes: > > Linux cares about it when reading file names from Apple's HFS+ > file system. I think the file names are stored as NFD on disk > and the hfsplus_readdir function converts them to NFC, except I'm > =E2=80=8B=E2=80=8B > > not sure the conversion entirely matches Unicode specifications. > =E2=80=8BI know that on Linux a readdir returns NFC strings. Are you sayin= g that even though HFS+ stores NFD on MacOS it return NFC? Or are you saying that the Linux =E2=80=8B =E2=80=8BHFS+ driver performs a conversion? If only the latter then my point that the definition of a canonical filename=E2=80=8B is =E2=80=8Bhost OS specific remains. =E2=80=8B/john=E2=80=8B --94eb2c19e34caac380053ef02c14 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sat, Oc= t 15, 2016 at 7:07 PM, Kalle Olavi Niemitalo <kon@iki.fi> wrote:
Richard Stallman <rms@gnu.org> w= rites:

Linux cares about it when reading file names from Apple's HFS+ file system.=C2=A0 I think the file names are stored as NFD on disk
and the hfsplus_readdir function converts them to NFC, except I'm
=E2=80=8B=E2=80=8B

not sure the conversion entirely matches Unicode specifications.

=E2=80=8BI know that on Linux a= readdir returns NFC strings.=C2=A0 Are you saying
that even though HFS+ stores NFD on MacOS it return NFC?=C2=A0 Or=
are you saying that the Linux =E2=80=8B<= /div>=C2=A0
=E2=80=8BHFS+ driver performs a conversion?
If only the latter then my point that the d= efinition of a canonical
filename=E2=80= =8B=C2=A0
is =E2=80=8Bhost OS=C2=A0
specific remains.
<= div>
=E2=80=8B/john=E2=80=8B


--94eb2c19e34caac380053ef02c14--