mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-14 17:36:31 +01:00
restore the use of Glib::ustring when iterating over possibly illegal characters in a pathname
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@10071 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
66498207f1
commit
dff3dc0bb2
1 changed files with 8 additions and 2 deletions
|
|
@ -33,6 +33,8 @@
|
|||
#include <wordexp.h>
|
||||
#endif
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <pbd/error.h>
|
||||
#include <pbd/stacktrace.h>
|
||||
#include <pbd/xml++.h>
|
||||
|
|
@ -93,8 +95,12 @@ legalize_for_path (string str)
|
|||
{
|
||||
string::size_type pos;
|
||||
string legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: ";
|
||||
string legal;
|
||||
Glib::ustring legal;
|
||||
|
||||
/* this is the one place in Ardour where we need to iterate across
|
||||
* potential multibyte characters, and thus we need Glib::ustring
|
||||
*/
|
||||
|
||||
legal = str;
|
||||
pos = 0;
|
||||
|
||||
|
|
@ -103,7 +109,7 @@ legalize_for_path (string str)
|
|||
pos += 1;
|
||||
}
|
||||
|
||||
return legal;
|
||||
return string (legal);
|
||||
}
|
||||
|
||||
string bump_name_once(std::string name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue