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

Re: DEP 5 and directory/file names with spaces



Philipp Kern wrote:
On 2009-06-08, Giacomo A. Catenazzi <cate@debian.org> wrote:
PS: on POSIX you can expect all characters but NULL in filename
('/' is a very special beast: you cannot create a file containing the
'/' in current locale, but if it was created in other locales there
are not (theoretically) problems.

Wrong: The characters composing the name may be selected from the set of all
character values excluding the slash character and the null byte.

The <slash> is locale dependent. Thus a file created in an other locales
could contain the character that in current locale is interpreted as
<slash>.
BTW with pathname resolution rules, the file could not be acceded, but
AFAIK the non pathname resolution system call permit <slash>
(like readdir).

> [http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap03.html 3.169]

You are linking the old posix specification. On the new, point 3.170, you
see that now <slash> is written between angle parenthesis, to emphasize
that <slash> is to be interpreted as locale dependent character.

ciao
	cate


Reply to: