From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: empty-directory predicate, native implementation Date: Tue, 13 Oct 2020 22:12:58 +0300 Message-ID: <83d01m0wjp.fsf@gnu.org> References: <83y2ka18t7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 13 21:14:17 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSPkX-0004f5-Aw for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 21:14:17 +0200 Original-Received: from localhost ([::1]:51272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSPkW-0001dX-De for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 15:14:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSPjB-0000Q1-RX for emacs-devel@gnu.org; Tue, 13 Oct 2020 15:12:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41418) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSPjB-0006dW-3O; Tue, 13 Oct 2020 15:12:53 -0400 Original-Received: from [176.228.60.248] (port=3509 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kSPj7-0003hr-UV; Tue, 13 Oct 2020 15:12:51 -0400 In-Reply-To: (message from Arthur Miller on Tue, 13 Oct 2020 20:43:41 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257563 Archived-At: > From: Arthur Miller > Cc: emacs-devel@gnu.org > Date: Tue, 13 Oct 2020 20:43:41 +0200 > > > directory-files (and which you missed). For example, file names need > > to be encoded before they are passed to libc functions (or any > > external APIs that expect file names). > Actually I didn't; I first tested with ENCODE_FILE but I didn't know > what it does, and it appeared like it is working without, so I ditched > it. It worked without ENCODE_FILE by sheer luck: you must have tried that on a system where file names are encoded in UTF-8, and so most file names can be used without any conversion (but ENCODE_FILE already knows that).