PATCH: BR# 71590: Workaround for QRegExp bug in wildcard matching (globbing) mode.

Waldo Bastian bastian at kde.org
Mon Jan 5 09:33:54 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon January 05 2004 01:57, Dawit A. wrote:
> Hello,
>
> The attached pactch addresses a bug in QRegExp::search that causes it to
> make incorrect matches in wildcard (file globbing) mode.  The fix is
> validated by the included test case. I have reported the bug to TrollTech.
>
> QRegExp rx ("*.kde", true, true)
> int res = rx.search( "www.kde.org");  // Should return -1. DOES NOT.
> bool res2 = rx.exactMatch("www.kde.org"); // Works correctly.

I fail to see the Qt problem actually. Either I misunderstand or you have just 
discovered that search and exactMatch are not the same. But that should 
hardly come as a surprise, no?

The KPac fix looks good.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/+S+DN4pvrENfboIRAtelAKCftCWKTE+y/abPl9vfcDi3PyLxcwCfQ9Dj
kEc+CGmFaFiJR5nP/dCtCTI=
=wwBq
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list