[Lazarus] MatchesWindowsMask('[x]','[x]') return False

Bart bartjunk64 at gmail.com
Sun Mar 15 22:19:21 CET 2020

On Sun, Mar 15, 2020 at 8:23 PM Mattias Gaertner via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

> IMO it should check for \[

Using \ as an escape character isn't really a good choice IMO, since
this function deals with filenames.
I would be more inclined to have an option to disable sets in the mask.

@Rolf: you can do a StringReplace on the filename, changing '[' into
'[[]'. That would do the trick.

Let's wait to hear what Delphi does (got no answer yet).

More information about the lazarus mailing list