Jean-Marc Lasgouttes wrote: > Angus> The alternative is to escape 'special chars', so 'Dokumente > und Angus> Einstellungen' becomes 'Dokumente\ und\ Einstellungen'. > > This is probably more complicated and error prone.
Agreed. So we need: string const subst_filename(string const & input, string const & oldstr, string const & newstr) { return subst(input, oldstr, QuoteName(newstr)); } That should be straightforward to do. -- Angus