From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] frogs and osx From: "Russ Cox" Date: Thu, 3 Jan 2008 21:29:49 -0500 In-Reply-To: <33bbf51a2f464189183909eb31c415b8@quintile.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Message-Id: <20080104022953.CE1461E8C1F@holo.morphisms.net> Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 26b10be6-ead3-11e9-9d60-3106f5b1d025 > Using u9fs to access my mac I find I cannot see directories (folders) > that have their own specific icon. >=20 > This turns out to be because these directories contain a file > Icon whiel is ASCII 13, and /sys/src/9/port/chan.c:1656 > defines the frogs illegal in filenames to include carriage return. >=20 > Why does frogs contain these latters, My feeling is that only > should be illegal, perhaps these are a hangover from pre utf-8 > days? >=20 > 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. >=20 > Is it historic or there for a very good reason=E2=84=A2 ? 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