[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need a memory jogger - whitespace in filenames



Thanks for the page, I rebuild glimpse (now on version 4.14)
However, we are getting broken links on search.  Seems to be URL is still 
ignoring whitespace (all of $link past first space ends up in $title)
Seems to be in parsing here:
 if($QS_lines){
                # look for line number, too
                
(/^([^$FILE_END_MARK]+)$FILE_END_MARK+([^\s]+)\s*(([^\\:]|\\:|\\\\)*):\s
*(\S\S\S\s+\d+\s+\d\d\d\d):\s*(\d+)\s*:(.*)/) || next;
                $file = $1;
                $link=$2;
                $title=$3 || '';
                $date = $5 || '';
                $line = $6 || '';
                $string = $7 || '';
        }else{
                
(/^([^$FILE_END_MARK]+)$FILE_END_MARK+([^\s]+)\s*(([^\\:]|\\:|\\\\)*):\s
*(\S\S\S\s+\d+\s+\d\d\d\d):(.*)/) ||
                   (/^([^$FILE_END_MARK]+)$FILE_END_MARK+([^\s]+)\s*/) || 
next;
                /^There are matches to/ && next;
                $file = $1;
                $link = $2;
                $title = $3 || '';
                $date = $5 || '';
                $string = $6 || '';
        } 

working on figuring out that.  If you beat me to it, feel free to e-mail. 
 I really wish people would make nasty REGEX multi-line and commented...


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 1/15/02, 3:29:24 PM, "Golda Velez" <golda@iwhome.com> wrote regarding 
Re: Need a memory jogger - whitespace in filenames:


> We have a good answer for this one - see

>       http://webglimpse.net/docs/howto_spacesinfilenames.html

> for the full instructions for all versions of glimpse and webglimpse.  If 
you have glimpse 4.14 or above, just do this

>       ./configure --file-end-mark='\t'
>       make
>       make install

> --Golda

> >
> > I know that glimpse has problems with indexing files with whitespace in
> > them.
> > I know that I solved this in the past - at least at first by removing the
> > whitespace (not an option this time - a lot of the html is autogenerated,
> > would break hundreds of links).
> >
> > I was wondering if there was another solution.  Anyone know of an option,
> > wrapper script, method to get glimpse to correctly index files with
> > spaces in them?
> >
> > Thanks,
> > Derek
> >