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

Re: "Strange" characters in file names

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-25 23:20:36 CEST

On Mar 25, 2007, at 15:34, <svn.users@salvisberg.com>
<svn.users@salvisberg.com> wrote:

>>> svn: Can't convert string from native encoding to 'UTF-8':
>>> svn: Kurs Ern?\195?\164hrung.doc
>>
>> Perhaps you have not set the LANG variable so ls and svn don't
>> know how to properly display it. Try export LANG=de_DE.utf8 or
>> whatever the correct value for your OS is. (The contents of the
>> directory /usr/share/locale may tell you what the valid locales
>> are on your system.)
>
> Yes, indeed, this helped. ls still doesn't display the file
> properly (I don't really care), but svn doesn't complain anymore.
>
> Can you explain (or point me to an explanation), what this does and
> why it's needed? I'd prefer not to set a locale (leave it at the
> default POSIX), because I don't want to introduce a bias towards
> German. This particular filename happens to be in German, but I'm
> sure someone will upload a file with a French name sooner or later.

This does not introduce a bias towards German. It does cause error
messages to be printed in German. Based on the name of the file, I
assumed you would want that. If you prefer English error messages
from Subversion, use en_US.utf8, or whatever it is on your OS.

The important part is the .utf8 part, which explains to Subversion
and other tools that you are using the UTF-8 character encoding.
UTF-8 can handle all languages, so as long as your locale is a UTF-8
locale, you will be able to handle all filenames.

> The directory with the offending file has svn:ignore set to "*". I
> guess I'll just ignore the entire directory instead, but I wonder
> why svn looks at the files at all.

Whether you want to ignore the files or not is your business.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Mar 25 23:21:09 2007

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

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