[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36052] trunk/blender/source/blender/ blenlib/intern/path_util.c: fix [#26803] Libs paths are case sensitive in windows
Campbell Barton
ideasman42 at gmail.com
Fri Apr 8 08:47:41 CEST 2011
Revision: 36052
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36052
Author: campbellbarton
Date: 2011-04-08 06:47:41 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
fix [#26803] Libs paths are case sensitive in windows
another case was exposed by this report, making relative paths wasn't case insensitive on windows.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/intern/path_util.c
Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c 2011-04-08 05:03:02 UTC (rev 36051)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c 2011-04-08 06:47:41 UTC (rev 36052)
@@ -456,7 +456,12 @@
char *p= temp;
char *q= file;
- while (*p == *q) {
+#ifdef WIN32
+ while (tolower(*p) == tolower(*q))
+#else
+ while (*p == *q)
+#endif
+ {
++p; ++q;
/* dont search beyond the end of the string
* in the rare case they match */
More information about the Bf-blender-cvs
mailing list