now add it!
[spider.git] / cmd / apropos.pl
index 8e4d4eb24fff17d4943e3db394bb13b3038b5771..d3def0cd5dffe9230122ff759d0e68fc22377a55 100644 (file)
@@ -30,7 +30,7 @@ unless ($defh->open("$main::localcmd/Commands_en.hlp")) {
 }
 
 my $h;
-unless ($lang ne 'en') {
+if ($lang ne 'en') {
        $h = new IO::File;
        unless ($h->open("$main::localcmd/Commands_$lang.hlp")) {
                unless($h->open("$main::cmd/Commands_$lang.hlp")) {
@@ -44,6 +44,7 @@ my $include;
 foreach $in (<$defh>) {
        next if $in =~ /^\#/;
        chomp $in;
+       $in =~ s/\r$//;
        if ($in =~ /^===/) {
                $cmd{$cmd} = "$cmd $desc" if $include;
                $include = 0;
@@ -66,6 +67,7 @@ if ($h) {
        foreach $in (<$h>) {
                next if $in =~ /^\#/;
                chomp $in;
+               $in =~ s/\r$//;
                if ($in =~ /^===/) {
                        $cmd{$cmd} = "$cmd $desc" if $include;
                        $include = 0;