[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problems with accents in filenames

From: Ben Gollmer <ben_at_jatosoft.com>
Date: 2003-11-21 00:16:52 CET

On Thu, 20 Nov 2003 16:41:59 -0600, Vincent Lefevre <vincent+svn@vinc17.org>
wrote:
> On 2003-11-20 16:52:24 +0000, Philip Martin wrote:
> > Vincent Lefevre <vincent+svn@vinc17.org> writes:
> > > So, if the path comes from the user input, it should be converted
> > > into UTF-8. However, if the path comes from the file system
> > > (e.g. when doing a recursive operation), no conversion should occur.
> >
> > There is no difference between "user input" and "from the file
> > system".
>
> There is a difference: When the user inputs non-ASCII characters,
> their encoding depends on the locales (hence the sequences should
> be converted into UTF-8). But when a filename comes from the
> filesystem, it is already in the UTF-8 encoding (unless the user
> has broken things), so no conversion is needed.

I don't know what filesystem you are using, but POSIX filesystems store file
names as a plain string of bytes. It is up to the user's programs to interpret
those strings.

-- 
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 21 00:17:49 2003

This is an archived mail posted to the Subversion Dev mailing list.