From d38e02c031dbda9e014770eeb4c8aa9df25b94a3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 15 May 2012 13:40:10 +0000 Subject: [PATCH] Always use wxPATH_WIN for wxFileName::GetForbiddenChars While it's possible to have files with the DOS-only forbidden characters on other platforms, wx doesn't actually support them very well. Closes #1489. Originally committed to SVN as r6792. --- aegisub/src/dialog_style_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_style_manager.cpp b/aegisub/src/dialog_style_manager.cpp index f36cc2977..b5774e83a 100644 --- a/aegisub/src/dialog_style_manager.cpp +++ b/aegisub/src/dialog_style_manager.cpp @@ -372,7 +372,7 @@ void DialogStyleManager::OnCatalogNew() { if (!name) return; // Remove bad characters from the name - wxString badchars = wxFileName::GetForbiddenChars(); + wxString badchars = wxFileName::GetForbiddenChars(wxPATH_DOS); int badchars_removed = 0; for (size_t i = 0; i < name.size(); ++i) { if (badchars.find(name[i]) != badchars.npos) {