[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: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2003-11-24 02:47:33 CET

On 2003-11-24 02:10:08 +0100, Branko ??ibej wrote:
> O.K., I'll concede that. I should have said,
> "... the exact encoding of the characters in a file name usually depends
> on the current locale."

Where did you see that?

> My point is that *it is not*. Most Unix applicaitons do *not* send
> UTF-8 encoded file names to the filesystem, they use whatever the
> current locale prescribes.

This is plainly wrong. For instance, the filename may come from an
XML file, where UTF-8 encoding may be (and is often) used. In this
case, applications will typically send the UTF-8 encoded filename.
In short, you have 3 kinds of applications:
1) those that will save UTF-8 filenames (based on their knowledge);
2) those that won't do any conversion and will send the bytes as
they received them (letting all the responsibility concerning the
encoding to the user);
3) Subversion, which does a conversion and breaks everything.

> >It is an inconsistency, therefore a Subversion bug (even if Subversion
> >chooses a local encoding -- for instance, in this case, the encoding
> >could be written somewhere in the .svn directory, and there would be
> >no bug).
> >
> No, that would be an even worse bug. Imagine what happens if your shell
> runs in UTF-8 and Subversion decides its working copy is in Shift-JIS.

Nothing wrong would happen (at least, this wouldn't be worse than now).

> GNOME is not the filesystem. ROX-Filer is not the filesystem.
> Subversion isn't a GNOME application.

But the user may create files in the working copy with ROX-Filer.
This is the important point.

> Let me put it simply. You're having problems because you insist on
> using several different, incompatible locales to manipulate the same
> files.

If Subversion didn't do any conversion, I wouldn't have any problem.

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 24 02:48:10 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.