[Bf-blender-cvs] [5acb0ba] blender-v2.76-release: Fix T45900: Allow again white spaces in file names.
Bastien Montagne
noreply at git.blender.org
Thu Oct 29 12:07:03 CET 2015
Commit: 5acb0ba569629347a84896434a633f574ee53c5e
Author: Bastien Montagne
Date: Thu Oct 15 07:44:25 2015 +0200
Branches: blender-v2.76-release
https://developer.blender.org/rB5acb0ba569629347a84896434a633f574ee53c5e
Fix T45900: Allow again white spaces in file names.
Should probably be added to 'a' release, should we do one...
===================================================================
M source/blender/blenlib/intern/path_util.c
===================================================================
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 4692af0..902de79 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -453,6 +453,7 @@ void BLI_cleanup_file(const char *relabase, char *path)
*
* \note Space case ' ' is a bit of an edge case here - in theory it is allowed, but again can be an issue
* in some cases, so we simply replace it by an underscore too (good practice anyway).
+ * REMOVED based on popular demand (see T45900).
*
* \note On Windows, it also ensures there is no '.' (dot char) at the end of the file, this can lead to issues...
*
@@ -461,9 +462,9 @@ void BLI_cleanup_file(const char *relabase, char *path)
*/
bool BLI_filename_make_safe(char *fname)
{
- const char *invalid = "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
+ const char *invalid = "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
- "/\\?%*:|\"<> ";
+ "/\\?%*:|\"<>";
char *fn;
bool changed = false;
More information about the Bf-blender-cvs
mailing list