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

Re: [svn] Recode problem

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-09 04:17:31 CEST

On May 8, 2005, at 9:00 PM, Vincent Lefevre wrote:

> On 2005-05-08 12:22:48 -0400, Greg Hudson wrote:
>
>> Uh, okay. I read a filename from a directory. Where can I find out
>> its character set?
>>
>
> The GNOME convention says that all filenames are encoded with UTF-8.
> So one always knows the character set. :)
>

I think you misunderstood Greg's question. GNOME may have a
convention that applications always *save* files in UTF8 encoding.
But it has no control over files that already exist. What happens
when I ask a GNOME application to open a file encoded in something
other than UTF-8? Does it "guess" at the encoding?

That's the same problem that Subversion faces: somebody tells the
svn client to import a path into the repository, and it needs to
guess at the encoding so that it can convert it to UTF-8. (The
repository stores all paths as UTF-8.) At the moment, the only thing
the svn client does is look at the LOCALE environment variable. I
suspect GNOME applications do the same thing.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 9 04:19:18 2005

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.