9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Bruce Ellis" <bruce.ellis@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] frogs and osx
Date: Fri,  4 Jan 2008 17:35:17 +1100	[thread overview]
Message-ID: <775b8d190801032235t860acd1w8a3041a5214b45f0@mail.gmail.com> (raw)
In-Reply-To: <20080104022953.CE1461E8C1F@holo.morphisms.net>

my recollection is frogs was for files created by mistake.
nothing to do with UTF-8.  as for ICON\r ... can we call
that consistency by obscurity.  after all it is not to hard
at all to subvert but a user won't, click click click nuh.

also, i remember well when ' ' was snuck out to see if
anyone noticed.  it stuck.

brucee

On Jan 4, 2008 1:29 PM, Russ Cox <rsc@swtch.com> wrote:
> > Using u9fs to access my mac I find I cannot see directories (folders)
> > that have their own specific icon.
> >
> > This turns out to be because these directories contain a file
> > Icon<cr> whiel <cr> is ASCII 13, and /sys/src/9/port/chan.c:1656
> > defines the frogs illegal in filenames to include carriage return.
> >
> > Why does frogs contain these latters, My feeling is that only <nul>
> > should be illegal, perhaps these are a hangover from pre utf-8
> > days?
> >
> > Perhaps there is a good reason for not allowing such characters,
> > I can see that creating such files should be discouraged but
> > failing a read(2) of a directory containing such files seems extreme.
> >
> > Is it historic or there for a very good reason™ ?
>
> In addition to NUL, surely / should be illegal!
> I certainly wouldn't want \n in file names; \r seems just too close.
> In general, I'm quite happy that file names are guaranteed
> not to contain such difficult characters.  There's very little
> benefit to be had by allowing them, and they complicate many
> things (witness xargs -0 on Unix).
>
> A better workaround for this particular problem would be
> for u9fs to rewrite the name or omit that entry entirely.
>
> Russ
>
>


  reply	other threads:[~2008-01-04  6:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03 19:46 Steve Simon
2008-01-04  2:29 ` Russ Cox
2008-01-04  6:35   ` Bruce Ellis [this message]
2008-01-04  7:24   ` Lyndon Nerenberg
2008-01-04  7:31     ` Bruce Ellis
2008-01-04  7:37       ` Lyndon Nerenberg
2008-01-04  7:45         ` Bruce Ellis
2008-01-04  7:45       ` Lyndon Nerenberg
2008-01-04  9:52         ` Bruce Ellis
2008-01-04 10:17           ` Steve Simon
2008-01-04 10:26             ` Bruce Ellis
2008-01-04 11:22     ` Pietro Gagliardi
2008-02-06 13:51       ` underspecified

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=775b8d190801032235t860acd1w8a3041a5214b45f0@mail.gmail.com \
    --to=bruce.ellis@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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).