Re: [mirrorbrain] Problem and question

From: Peter Pml <peter_at_poeml.de>
Date: Wed, 16 May 2012 16:52:50 +0200
Hi George,

Am 14.05.2012 um 14:19 schrieb George Koutras:
> Hello again,
> 
> I solved the previous problem. Also I had to enable mod_asn because else the probing was not working :-( 

Hm, interesting to hear that - it should be independently usable, but apparently that's no longer the case. If you have the specific error message you got, it could be helpful to track down what's wrong.

> Another problem that I have now is when I scan an http only mirror with mb scan <ID> I get many times:
> 
> Character in 'c' format wrapped in pack at /usr/bin/scanner line 590.
> 
> Do you know what is the problem?

Not yet, but I have an idea. You are on Ubuntu Lucid, you said, right? So we can assume are relatively new Perl interpreter. Maybe it sees UTF-8 characters where it didn't do so before.

Could you try the following modification (applied to /usr/bin/scanner)?

Index: scanner.pl
===================================================================
--- scanner.pl	(revision 8289)
+++ scanner.pl	(working copy)
_at_@ -587,7 +587,7 @@
           print "$identifier: date $date\n";
           print "$identifier: size $size\n";
         }
-        $name1 =~ s{%([\da-fA-F]{2})}{pack 'c', hex $1}ge;
+        $name1 =~ s{%([\da-fA-F]{2})}{pack 'U', hex $1}ge;
         $name1 =~ s{^\./}{};
         my $dir = 1 if $pre =~ m{"\[DIR\]"};
         #print "$identifier: $pre^$name1^$date^$size\n" if $verbose > 1;
_at_@ -638,7 +638,7 @@
           print "$identifier: date $date\n";
           print "$identifier: size $size\n";
         }
-        $name1 =~ s{%([\da-fA-F]{2})}{pack 'c', hex $1}ge;
+        $name1 =~ s{%([\da-fA-F]{2})}{pack 'U', hex $1}ge;
         $name1 =~ s{^\./}{};
         my $dir = 1 if $pre =~ m{>Directory<};
         my $t = length($name) ? "$name/$name1" : $name1;



The first question then would be if it makes the error message go away. (I can't check right now, because the error doesn't happen on the older systems I have.)

The second question would be if the scanner scans correctly. 

Peter


_______________________________________________
mirrorbrain mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain/

Note: To remove yourself from this mailing list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-request_at_mirrorbrain.org
Received on Wed May 16 2012 - 14:52:57 GMT

This archive was generated by hypermail 2.3.0 : Wed May 16 2012 - 17:17:03 GMT