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

Re: How to block files if the exceed number

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 27 Jul 2009 08:32:15 -0500

On Jul 27, 2009, at 03:51, Ilan Yaniv wrote:

> The thing is that the file that I am checking is binary (word
> document).

Shouldn't make any difference.

> The hook is written in Perl.

That should be fine.

> I am running the cat command.
> Here is the code example:
> my $command = "$svnlook cat -t \"$txn\" $repos $file";
> my $filecontent = `$command`;
> When I try to print to content to the Tortoise I am getting this
> error:
> Safe data 'test_ilan/Doc6.doc
> ' was followed by non-ASCII byte 208: unable to convert to/from UTF-8

Can you show the complete hook script? How are you getting $file and
what is in it? It looks as if there is a newline in $file followed by
some non-ASCII (and non-UTF-8) byte.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2375851

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-27 15:33:13 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.