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 19:22:03 +0200 Message-ID: <831tam1f7o.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1450286624 28793 80.91.229.3 (16 Dec 2015 17:23:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 17:23:44 +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 18:23:33 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 1a9FnY-0000VZ-Me for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 18:23:32 +0100 Original-Received: from localhost ([::1]:48536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9FnX-00062I-Lx for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 12:23:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9FmA-0004hE-SI for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 12:22:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Fm5-00058Q-SI for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 12:22:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Fm5-00058I-PY for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 12:22:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a9Fm5-0001vg-Io for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 12:22: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 17:22: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.14502865177406 (code B ref 22169); Wed, 16 Dec 2015 17:22:01 +0000 Original-Received: (at 22169) by debbugs.gnu.org; 16 Dec 2015 17:21:57 +0000 Original-Received: from localhost ([127.0.0.1]:53791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9Fm1-0001vO-BZ for submit@debbugs.gnu.org; Wed, 16 Dec 2015 12:21:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57241) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9Fm0-0001vC-CR for 22169@debbugs.gnu.org; Wed, 16 Dec 2015 12:21:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Flq-00055a-8Z for 22169@debbugs.gnu.org; Wed, 16 Dec 2015 12:21:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Flq-00055W-2m; Wed, 16 Dec 2015 12:21:46 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4908 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a9Flp-0003hy-EF; Wed, 16 Dec 2015 12:21:45 -0500 In-reply-to: <874mfimlhi.fsf@fastmail.com> (message from Random832 on Wed, 16 Dec 2015 11:00:57 -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:110054 Archived-At: > From: Random832 > Date: Wed, 16 Dec 2015 11:00:57 -0500 > > > It's not really clear what is correct behavior in this case. On other > > platforms Emacs will return only a3, but HFS+ stores decomposed > > characters precisely to allow all 3 to match. So I think we should > > at least cause Emacs return only a3, and ideally also support the > > other behavior as an option. > > 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. > I think maybe lax matching as an option would be better than > blindly doing comparisons based on the decomposed form. It could be, if we had the lax matching implemented in C. But we currently only emulate that with complex regexps, and I think it's not a good idea to call that from dired.c. > I'm not sure there's a way around it if we want to be 100% > correct and consistent, given the existence of parts of the > completion system that do work with the strings in Unicode. 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.