emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: empty-directory predicate, native implementation


From: Eli Zaretskii
Subject: Re: empty-directory predicate, native implementation
Date: Tue, 13 Oct 2020 22:12:58 +0300

> From: Arthur Miller <arthur.miller@live.com>
> 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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]