bug-global
[Top][All Lists]
Advanced

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

Re: htags doesn't properly escape characters in filenames


From: Shigio Yamaguchi
Subject: Re: htags doesn't properly escape characters in filenames
Date: Wed, 09 Jul 2003 13:59:32 +0900

Hi,
> i've observed that if the input source filename contains a regex 
> special character such as '+', then at line 645 of htags, where a link 
> is being built up, there will be a problem.
> 
> i noticed this originally because a header is named like "foo++.h". a 
> simple solution to this would be to add the following one line prior, 
> but it doesn't address other regex special characters.
> 
>                  $name =~ s/\+/\\\+/g;

I have fixed the bug in CVS repository version, I think.
Thank you for your report!

Index: htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.163
diff -r1.163 htags.in
548a549
>               $name =~ s/([^\w])/\\\1/g;      # Quote name
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]