[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: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-05-09 10:38:26 CEST

On 2005-05-08 21:17:31 -0500, Ben Collins-Sussman wrote:
> 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?

I don't know. For instance, ROX-Filer (a GTK+ application, i.e. using
the same GNOME convention) guesses the enconding (but I don't know
how) and fixes it on the fly if possible (and enabled?). I don't know
how the guess is done, but using the user's locale isn't necessarily
the best solution as the filename may come from an external source.
I think that the best solution is to give the choice to the user,
just like what Emacs does for the encoding of text file contents.

http://mail.gnome.org/archives/gnome-vfs-list/2003-March/msg00013.html
summarizes the situation:

  In general the filename encoding issue this is a hard problem, and a
  full real solution will not be availible for a long time, until the
  whole world has switched over to a common encoding. Many sources of
  filenames just don't have a corresponding filename encoding specified,
  so until everyone use the same we have to guess. Take an ftp site for
  instance. How are you supposed to know the encoding it uses for
  filenames?

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
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 May 9 10:40:32 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.