Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 1998 16:15:04 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        stb@hanse.de (Stefan Bethke)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Warning: Change to netatalk's file name handling
Message-ID:  <199808262315.QAA08454@bubba.whistle.com>
In-Reply-To: <Pine.BSF.3.96.980827004642.15225A-100000@transit.hanse.de> from Stefan Bethke at "Aug 27, 98 00:56:38 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Stefan Bethke writes:
> > If you want file names decoded in a directory listing, use "ls -B".
> > 
> > Netatalk seems like the wrong place to modify behavior to solve this
> > problem, which is a display problem, not an encoding problem.
> 
> Where is the encoding defined for character values in the ranges between
> \0x01 to \0x1f, and \0x7f to \0xff in terms of UFS, POSIX, whatever?
> 
> If you were right, it would be OK for afpd to store all chars literally.
> While this does work, it is definitly awkward to work with in the shell,
> and possibly so together with other applications as Samba as well. Its not
> merely an display issue; its an interoperability issue. I feel that too
> many things expect file names to confine to printable ascii, and unless
> this changes, I opt to fix what in my eyes is an obvious bug in afpd (that
> is, escaping \0x80 to \0xff, but leaving \0x01 to \0x1f and \0x7f
> untouched).

I guess that makes sense, if netatalk is already escaping 0x80-0xff in
the same way..

This goes deeper of course... ie, a byte is not the same thing as
a character, and the question is, what is the character set and
what is the encoding between a character and one or more bytes?
Julian's right, in that you should query Jeremy about this for
more complete info (but probably only for amusement value :-)

[ On the InterJet, for example, you can have it set to Japanese mode,
and shared files appear with the same name under AppleTalk and
Windows, ie, Samba and Netatalk use the same character encoding. ]

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808262315.QAA08454>