[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: Branko Čibej <brane_at_xbc.nu>
Date: 2003-11-23 23:38:53 CET

Vincent Lefevre wrote:

>I haven't changed the files. So, this is a bug in Subversion. Any
>program should know that the user may use different locales when
>he wants. Locales are not something linked to the system itself,
>but a user choice, local for each process (different users may
>choose different locales, and different processes may run with
>different locales, even for the same user).
>
>
I'm going to try one last time, and I'll do my utmost to restrain my
fllammatory urges.

There is no convention on Unix about how the filesystem encodes file
names. Typically, the bytes that an application send to the VFS layer
are what gets written to disk. And the exact encoding of the characters
in a file name depends on the current locale.

Yes, different users can use different locales, and the same user can
use different locales at different times. As you noticed, this will
typically cause problems if the locales used are incompatible (such as
in your example, where UTF-8 and ISO-8859-1 are incompatible for code
positions above \x7f). The bytes stored in the directory structure on
disk are always interpreted in terms of the current locale settings.

This is what you're seing, and it's not a Subversion bug, it's a fact of
life on Unix.

I agree it would be nice if Unix file systems stored character data in a
consistent encoding (such as, for example, NTFS on Windows, which uses
UTF-16), but things simply don't work that way. Please stop trying to
convince us that they do.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 23 23:37:40 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.