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: Fri, 18 Dec 2015 09:07:39 +0200 Message-ID: <83r3ikxmis.fsf@gnu.org> References: <83y4cw3kie.fsf@gnu.org> <83twnk3fg1.fsf@gnu.org> <83oads2x99.fsf@gnu.org> <83io3z3drh.fsf@gnu.org> <831tan32q2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1450422501 20470 80.91.229.3 (18 Dec 2015 07:08:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2015 07:08:21 +0000 (UTC) Cc: random832@fastmail.com, 22169@debbugs.gnu.org To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 18 08:08: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 1a9p99-0005N2-5E for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Dec 2015 08:08:11 +0100 Original-Received: from localhost ([::1]:58700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9p98-0001SR-2t for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Dec 2015 02:08:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9p94-0001SJ-JC for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 02:08:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9p90-0006cR-CL for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 02:08:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9p90-0006cK-9K for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 02:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a9p90-0008PG-43 for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2015 02:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Dec 2015 07:08:02 +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.145042245132269 (code B ref 22169); Fri, 18 Dec 2015 07:08:02 +0000 Original-Received: (at 22169) by debbugs.gnu.org; 18 Dec 2015 07:07:31 +0000 Original-Received: from localhost ([127.0.0.1]:55069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9p8U-0008OP-Qv for submit@debbugs.gnu.org; Fri, 18 Dec 2015 02:07:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35834) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9p8U-0008OE-5B for 22169@debbugs.gnu.org; Fri, 18 Dec 2015 02:07:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9p8N-0006QD-Vu for 22169@debbugs.gnu.org; Fri, 18 Dec 2015 02:07:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9p8H-0006ML-3Z; Fri, 18 Dec 2015 02:07:17 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1688 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a9p8G-0006qY-BM; Fri, 18 Dec 2015 02:07:16 -0500 In-reply-to: (message from Anders Lindgren on Fri, 18 Dec 2015 07:29:17 +0100) 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:110106 Archived-At: > Date: Fri, 18 Dec 2015 07:29:17 +0100 > From: Anders Lindgren > Cc: Eli Zaretskii , random832@fastmail.com > > After reading through Random832:s comments, I also see the problem with "åäö" > and "aao" not being handled correctly. Typing "a TAB" makes Emacs delete the > "a", which seems very confusing. Typing "å TAB" or "aa TAB" works, though. > (Here `(file-name-all-completions "a" ".")' returns `("åäöfirst.txt" > "aaosecond.txt")'. > > In other words, Emcas is in better shape with my than it was before, but there > is still some work to be done. > > When it comes to "lax" matching -- I really don't think we should use it for > file names. I don't want to match "å" when I type "a" etc. I have an idea for a change that could solve this. I will post it in a day or two and ask you to try it. > HFS+ file systems are case sensitive (It's possible this can be disabled, but > if so it's very rarely used). However, many OS X desktop applications work hard > to make this invisible to users. I think that we should keep > `read-file-name-completion-ignore-case' as it is, as this corresponds to how > files really are stored. If that's what OS X users expect, fine with me. > After giving this some thought, it feels like the file name matching should be > done on decoded strings (so that an "a" doesn't match the "a" in a decomposed > "å"). However, this is a major change and needs to be discussed further. I rather think it's a non-starter, at least for Emacs 25.1. It probably means users of all systems will be punished by slower directory searches, on behalf of one peculiar filesystem. Unless there's some clever idea that avoids decoding each file name returned by readdir, that is. Thanks.