By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1493
Collapse All | Expand All

(-)a/kioslave/man/kio_man.cpp (-6 / +18 lines)
Lines 70-75 void stripExtension( TQString *name ) Link Here
70
        pos -= 4;
70
        pos -= 4;
71
    else if ( name->find(".bz", -3) != -1 )
71
    else if ( name->find(".bz", -3) != -1 )
72
        pos -= 3;
72
        pos -= 3;
73
    else if ( name->find(".xz", -3) != -1 )
74
        pos -= 3;
73
75
74
    if ( pos > 0 )
76
    if ( pos > 0 )
75
        pos = name->findRev('.', pos-1);
77
        pos = name->findRev('.', pos-1);
Lines 476-488 void MANProtocol::get(const KURL& url ) Link Here
476
    {
478
    {
477
       pageFound=false;
479
       pageFound=false;
478
       //check for the case that there is foo.1 and foo.1.gz found:
480
       //check for the case that there is foo.1 and foo.1.gz found:
479
       // ### TODO make it more generic (other extensions)
481
       if (foundPages.count()==2) {
480
       if ((foundPages.count()==2) &&
482
          TQString foundPage0 = foundPages[0];
481
           (((foundPages[0]+".gz") == foundPages[1]) ||
483
          TQString foundPage1 = foundPages[1];
482
            (foundPages[0] == (foundPages[1]+".gz"))))
484
483
          pageFound=true;
485
          stripExtension(&foundPage0);
484
       else
486
          stripExtension(&foundPage1);
487
          if(foundPage0 == foundPage1) {
488
             pageFound=true;
489
          }
490
       }
491
       if (!pageFound) {
485
          outputMatchingPages(foundPages);
492
          outputMatchingPages(foundPages);
493
       }
486
    }
494
    }
487
    //yes, we found exactly one man page
495
    //yes, we found exactly one man page
488
496
Lines 1335-1340 void MANProtocol::showIndex(const TQString& section) Link Here
1335
	    end -= 2;
1343
	    end -= 2;
1336
	else if ( len >= 4 && strcmp( end-3, ".bz2" ) == 0 )
1344
	else if ( len >= 4 && strcmp( end-3, ".bz2" ) == 0 )
1337
	    end -= 4;
1345
	    end -= 4;
1346
	else if ( len >= 4 && strcmp( end-2, ".bz" ) == 0 )
1347
	    end -= 3;
1348
	else if ( len >= 4 && strcmp( end-2, ".xz" ) == 0 )
1349
	    end -= 3;
1338
1350
1339
	while ( end >= begin && *end != '.' )
1351
	while ( end >= begin && *end != '.' )
1340
	    end--;
1352
	    end--;

Return to bug 1493