From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: "Joseph D. Wagner" <theman@josephdwagner.info>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: RFC: Illegal Characters in File Names
Date: Tue, 20 Jul 2004 18:52:06 +0200 [thread overview]
Message-ID: <20040720165206.GA4690@lug-owl.de> (raw)
In-Reply-To: <20040720162549.857014B7E7@dvmwest.gt.owl.de>
[-- Attachment #1: Type: text/plain, Size: 2847 bytes --]
On Tue, 2004-07-20 11:25:48 -0500, Joseph D. Wagner <theman@josephdwagner.info>
wrote in message <20040720162549.857014B7E7@dvmwest.gt.owl.de>:
> > See, it's only a question of *display*.
>
> No, it's not. Some programs use file names as input. Placing a
> timestamp directly in the file name comes to mind, but I'm sure you
> can think of many other examples. Control characters in these file
What't wrong with creating a strftime()'d filename? That's still
permitted if you allow not-easily-displayable characters.
> names would screw-up these programs. While you're going to argue
They need to properly check their input. If they don't, they're broken
by definition.
> that a program should anticipate malformed data, I'm going to argue
> that application development will be easier for Linux is programmers
> knew that those characters aren't going to be there.
Application development with C isn't easy. It needs quite some skills to
do The Right Thing (TM). I think that a good program is made up from
about some 20% of working code and 80% of error handling.
I've seen mission-critical apps that do near-no error checking
(including input checking and the like), but you get what you pay for.
What do you want to tell all those people that *rely* on being able to
store chars < 0x20 in filenames, or > 0x7f ?
> Where do most Linux programmers come from? Sure there's the same
>From C land. And those writing good applications already learned
the basics.
> core of people who have been programming Linux for years, but the
> new ones are coming from Windows platforms. Which is easier: to
Windows, and previously DOS, allowed for strange filenames, too.
> reeducate every single new Linux programmer that any character
> could appear in a file name, or to cut out some of the characters
> that don't make sense?
Ever tried to read a russion DOS floppy disk in a US-english Windows
PeeCee? Ever thought about UTF8 or UTF32?
These days, you can't even be sure that one char is one displayed
character *at all*. ...and while we're hard working (though slowly)
getting towards multi-character encodings, you try to propose not using
the full 8 bits available per byte?
Get real: Some lazy Ex-Windows programmers first need to properly
learn programming in the sense of not "make this work", but "make this
to never break". You can't trust in anything, except "input *can*
actually be even *worse* than this bullshit my customer just showed
me."
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-07-20 16:52 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-19 0:41 RFC: Illegal Characters in File Names Joseph Wagner
2004-07-19 8:47 ` Jan Hudec
2004-07-19 19:21 ` Joseph D. Wagner
2004-07-19 20:08 ` Pat LaVarre
2004-07-19 20:54 ` Joseph D. Wagner
2004-07-20 6:33 ` Jan-Benedict Glaw
2004-07-20 16:25 ` Joseph D. Wagner
2004-07-20 20:42 ` Stephen Rothwell
[not found] ` <20040720162549.857014B7E7@dvmwest.gt.owl.de>
2004-07-20 16:52 ` Jan-Benedict Glaw [this message]
[not found] ` <20040719192145.50750578E5@jabberwock.ucw.cz>
2004-07-19 21:01 ` Jan Hudec
2004-07-20 16:40 ` Bryan Henderson
2004-07-20 16:54 ` Guy
2004-07-20 18:10 ` viro
2004-07-20 20:44 ` Guy
2004-07-20 21:27 ` Matthew Wilcox
2004-07-20 21:37 ` Jan Hudec
2004-07-20 21:40 ` Matthew Wilcox
2004-07-20 21:45 ` Jan Hudec
2004-07-20 21:49 ` Guy
2004-07-20 22:04 ` Jan Hudec
2004-07-20 22:11 ` Paul Stewart
2004-07-20 22:16 ` Joseph D. Wagner
2004-07-21 12:26 ` Jan-Benedict Glaw
2004-07-21 15:28 ` Guy
2004-07-21 16:25 ` Jan-Benedict Glaw
2004-07-21 12:24 ` Jan-Benedict Glaw
2004-07-20 21:41 ` Bryan Henderson
2004-07-21 12:21 ` Jan-Benedict Glaw
2004-07-21 15:25 ` Guy
2004-07-22 18:04 ` Matthew Wilcox
2004-07-22 18:35 ` Guy
2004-07-20 20:57 ` Jan Hudec
2004-07-20 21:09 ` Guy
2004-07-20 21:36 ` Jan Hudec
2004-07-20 22:13 ` viro
2004-07-20 22:44 ` Jan Hudec
2004-07-20 22:51 ` viro
2004-07-20 23:30 ` Guy
2004-07-21 20:25 ` Bryan Henderson
2004-07-22 3:17 ` John Newbigin
2004-07-22 3:24 ` Matthew Wilcox
2004-07-22 6:01 ` viro
2004-07-22 22:12 ` Bryan Henderson
2004-07-22 14:51 ` Jan-Benedict Glaw
2004-07-22 22:44 ` Bryan Henderson
2004-07-22 22:47 ` Jan Hudec
2004-07-23 18:10 ` Bryan Henderson
2004-07-20 23:52 ` John Newbigin
2004-07-21 3:26 ` Joseph D. Wagner
2004-07-21 4:15 ` viro
2004-07-21 5:03 ` Guy
2004-07-21 12:28 ` Jan-Benedict Glaw
2004-07-21 15:30 ` Guy
2004-07-21 16:26 ` Jan-Benedict Glaw
2004-07-21 16:33 ` Jan Hudec
2004-07-21 16:41 ` Guy
2004-07-21 17:01 ` Jan Hudec
2004-07-20 22:16 ` Joseph D. Wagner
2004-07-21 12:43 ` Jan-Benedict Glaw
2004-07-20 22:31 ` viro
2004-07-20 18:27 ` Bryan Henderson
2004-07-19 9:26 ` Matthew Wilcox
2004-07-19 19:21 ` Joseph D. Wagner
[not found] ` <E1BmdhG-0004NG-00@master.debian.org>
2004-07-20 2:43 ` Matthew Wilcox
2004-07-20 3:16 ` Joseph D. Wagner
2004-07-20 8:45 ` Jan Hudec
2004-07-20 16:25 ` Joseph D. Wagner
2004-07-20 16:41 ` Guy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040720165206.GA4690@lug-owl.de \
--to=jbglaw@lug-owl.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=theman@josephdwagner.info \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).