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

svnlook encoding PATH_IN_REPOS - problem

From: Filip Kolendo <filip.kolendo_at_primesoft.pl>
Date: Thu, 08 May 2008 15:59:46 +0200

I have in repository files which names contain different national
characters.
To give an example I present url addresses:

http://localhost/repo/project/%d0%93%d0%b0%d0%b7%d0%b5%d1%82%d0%b0.txt
// russian
http://localhost/repo/project/%c4%85.txt // ± LATIN SMALL LETTER A
WITH OGONEK

etc.

The files are named by users the way they want it and, assume, it cannot
be controlled.

I wrote a hook script (post-lock) that sends mail about locking the file.
In the script I want to call svnlook command (eg. to get lock comment).
Script works fine when files are "plain named". It fails for "bizarre"
files.

How should I encode filenames?
svnlook lock REPOS_PATH project/??????

Windows Server 2003, server code page = 852.

I've spent many hours on trying to find the solution with no success.
I've found similar looking problems on the mail list, but there were no
answer.
Hope someone can help me.

Regards,
Filip

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-08 20:53:15 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.