[Sugar-devel] Sugar Labs Bug: 2485
Sascha Silbe
sascha-ml-reply-to-2011-2 at silbe.org
Fri Feb 4 08:23:43 EST 2011
Excerpts from Samuel Greenfeld's message of Thu Feb 03 21:27:32 +0100 2011:
> [...] While one could make fancy names, and
> add leading whitespace to filenames to override sorting as well, this
> actually does violate at least a few file system specs, regardless of
> what shell prompts seem to tolerate.
All file systems used by the core system support arbitrary byte streams
(except '/' and ASCII NUL) as file names [1]. In any case we never use a
value chosen by the user as part of a file name, except when exporting
entries to external storage. In the latter case it's the task of the
exporter (the Journal) to choose file names compatible with the target
file system. We can't and shouldn't rely on the user not using character
sequences that might be problematic for external systems.
Don't limit the user unless it's really necessary. We can use escaping,
quoting and similar techniques wherever the literal value would cause
problems.
Sascha
[1] http://en.wikipedia.org/wiki/File_name#Comparison_of_file_name_limitations
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110204/d990877b/attachment.pgp>
More information about the Sugar-devel
mailing list