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#22169: 25.0.50; File name compiletion doesn't work with non-ASCII characters on OS X Date: Wed, 16 Dec 2015 20:51:47 +0200 Message-ID: <83vb7yz0os.fsf@gnu.org> References: <83y4cw3kie.fsf@gnu.org> <83twnk3fg1.fsf@gnu.org> <83oads2x99.fsf@gnu.org> <83io3z3drh.fsf@gnu.org> <831tan32q2.fsf@gnu.org> <87d1u74bvi.fsf@fastmail.com> <83zixb1313.fsf@gnu.org> <83wpse1yuv.fsf@gnu.org> <874mfimlhi.fsf@fastmail.com> <831tam1f7o.fsf@gnu.org> <8760zyl0if.fsf@fastmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1450291942 21759 80.91.229.3 (16 Dec 2015 18:52:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 18:52:22 +0000 (UTC) Cc: 22169@debbugs.gnu.org To: Random832 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 19:52:11 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 1a9HBK-0001tc-Td for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 19:52:11 +0100 Original-Received: from localhost ([::1]:48836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9HBK-00074U-Bu for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 13:52:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9HBG-000720-61 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 13:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9HBC-0001z5-6W for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 13:52:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9HBC-0001z1-3c for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 13:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a9HBB-0003y4-QT for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 13:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Dec 2015 18:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22169-submit@debbugs.gnu.org id=B22169.145029190015225 (code B ref 22169); Wed, 16 Dec 2015 18:52:01 +0000 Original-Received: (at 22169) by debbugs.gnu.org; 16 Dec 2015 18:51:40 +0000 Original-Received: from localhost ([127.0.0.1]:53833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9HAq-0003xV-Kh for submit@debbugs.gnu.org; Wed, 16 Dec 2015 13:51:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49811) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9HAp-0003xH-3f for 22169@debbugs.gnu.org; Wed, 16 Dec 2015 13:51:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9HAg-0001ut-5E for 22169@debbugs.gnu.org; Wed, 16 Dec 2015 13:51:34 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9HAg-0001up-2i; Wed, 16 Dec 2015 13:51:30 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4948 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a9HAf-0005rT-AC; Wed, 16 Dec 2015 13:51:29 -0500 In-reply-to: <8760zyl0if.fsf@fastmail.com> (message from Random832 on Wed, 16 Dec 2015 13:19:20 -0500) 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:110060 Archived-At: > From: Random832 > Date: Wed, 16 Dec 2015 13:19:20 -0500 > > Eli Zaretskii writes: > >> I'm not aware of any published rationale for the decision to > >> store decomposed characters. > > > > It cannot be anything other than the desire to support lax matches. > > Maybe. I half suspect it was just to make their case mapping > table (which doesn't include entries for the precomposed > characters) smaller. Only if they force decomposition in contexts that have nothing to do with file names. Otherwise, they will have to have those large case tables anyway, for other kinds of text, right? > AFAICT the rationale for renormalizing filenames to NFC was that > combining characters couldn't be *displayed* on Carbon Emacs, > rather than there being anything especially undesirable about > the backspacing behavior. It is generally easier and more convenient to have precomposed characters, yes. It's not an accident that no other filesystem does this kind of decomposition; Windows filesystems actually compose the characters, AFAIK. > > I could come up with a patch if someone's interested to try it. I > > just want to hear first about the details of what happens in > > file_name_completion that causes file-name-all-completions return nil > > in the OP's case. There's got to be something that I'm missing here. > > Like I said, ns-win's utf-8-nfd doesn't normalize on encode. > I've since confirmed this with encode-coding-string. I haven't > been able to confirm that ucs-normalize's utf-8-hfs exhibits the > problem behavior. Let's hope you are right.