projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d1ce7
)
revert illegal/legal test change in legalize_for_path() (to be reverted again once...
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 26 Mar 2008 21:34:43 +0000
(21:34 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 26 Mar 2008 21:34:43 +0000
(21:34 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3192
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/utils.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/utils.cc
b/libs/ardour/utils.cc
index eeef52d7f8ca70d7eaf8975a7e8dda6fb5a1175b..f98b24a4f2379636a399fe3ae295d7cfbf6d04c5 100644
(file)
--- a/
libs/ardour/utils.cc
+++ b/
libs/ardour/utils.cc
@@
-92,13
+92,13
@@
ustring
legalize_for_path (ustring str)
{
ustring::size_type pos;
- ustring
illegal_chars = "/\\*
";
+ ustring
legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=:
";
ustring legal;
legal = str;
pos = 0;
- while ((pos = legal.find_first_
of (il
legal_chars, pos)) != string::npos) {
+ while ((pos = legal.find_first_
not_of (
legal_chars, pos)) != string::npos) {
legal.replace (pos, 1, "_");
pos += 1;
}