1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Bug 1441 - Mac: Imported file names containing '/' change the '/' to ':'

This addresses only one part of the behaviour, and now disallows \ and / in export multiple on all platforms.
This commit is contained in:
James Crook 2020-08-21 15:05:37 +01:00
parent 465a6876db
commit 93c5525a36

View File

@ -39,6 +39,7 @@ and on Mac OS X for the filesystem.
// Otherwise, you get link errors.
wxChar Internat::mDecimalSeparator = wxT('.'); // default
// exclude is used by SanitiseFilename.
wxArrayString Internat::exclude;
// DA: Use tweaked translation mechanism to replace 'Audacity' by 'DarkAudacity'.
@ -106,7 +107,10 @@ void Internat::Init()
exclude.push_back(wxString{ cc });
// The path separators may not be forbidden, so add them
auto separators = wxFileName::GetPathSeparators(format);
//auto separators = wxFileName::GetPathSeparators(format);
// Bug 1441 exclude all separators from filenames on all platforms.
auto separators = wxString("\\/");
for(auto cc: separators) {
if (forbid.Find(cc) == wxNOT_FOUND)