[Namazu-users-en] Re: errors in mknmz
Tadamasa Teranishi
yw3t-trns at asahi-net.or.jp
Mon Jun 13 20:43:55 JST 2005
Peter FELECAN wrote:
>
> I got the following error messages:
>
> Writing index files...
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 2099.
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 2099.
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 2099.
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 2099.
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 2099.
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 2099.
> Argument "136,755" isn't numeric in addition (+) at /opt/csw/bin/mknmz line 1993.
> Argument "2,749,305" isn't numeric in subtraction (-) at /opt/csw/bin/mknmz line 1996.
It is an already-known bug.
The bug fix is scheduled to be done in Namazu 2.0.15.
The comma enters by write_status of pl/nmzidx.pl.
A pertinent function is not called in mknmz.
However, the comma enters because gcnmz and nmzmerge call
write_status.
Write_status for the time being
from
$key = comma($self->{'word'}->{'size'}) if defined $self->{'word'};
$file = comma($self->{'flist'}->{'valid'}) if defined $self->{'flist'};
to
$key = $self->{'word'}->{'size'} if defined $self->{'word'};
my $key2 = comma($key);
$file = $self->{'flist'}->{'valid'} if defined $self->{'flist'};
my $file2 = comma($file);
Is changed.
from
$line =~ s/(\<\!-- FILE --\>).*?\1/$1 $file $1/ if defined $file;
$line =~ s/(\<\!-- KEY --\>).*?\1/$1 $key $1/ if defined $key;
to
$line =~ s/(\<\!-- FILE --\>).*?\1/$1 $file2 $1/ if defined $file;
$line =~ s/(\<\!-- KEY --\>).*?\1/$1 $key2 $1/ if defined $key;
I think to be safe if it rewrites, and it tries to make the index.
--
=====================================================================
TADAMASA TERANISHI
http://www.asahi-net.or.jp/~yw3t-trns/index.htm
Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E
More information about the Namazu-users-en
mailing list