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

Re: Filenames with non-ASCII characters

From: David Brodbeck <brodbd_at_u.washington.edu>
Date: Thu, 13 May 2010 10:47:04 -0700

On May 13, 2010, at 10:29 AM, Rodrigo Montenegro wrote:

> Hey guys!
>
> I am trying to block the users committing files with non-ASCII characters in their names during the pre-commit hook script, but when I get the list of files being committed with "svnlook changed" the filenames are completely messed up.
>
> For example, a file named "ação.txt" when committed, has the string "A trunk/a?\195?\167?\195?\163o1.txt" returned by the "svnlook changed" command.
>
> I have tried to convert "A trunk/a?\195?\167?\195?\163o1.txt" into iso8859-1 but I had no luck. I made the pre-commit hook scrips using python.

That looks like Unicode being escaped as individual byte values. When I do:
perl -e 'print chr(195).chr(167).chr(195).chr(163)."\n"'

I get:
çã
on a Unicode terminal.

-- 
David Brodbeck
System Administrator, Linguistics
University of Washington
Received on 2010-05-13 19:49:38 CEST

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.