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