jackdanielz pushed a commit to branch efl-1.10. http://git.enlightenment.org/core/efl.git/commit/?id=2281b506711685465c5dd50d32c1ddcfa9735ee8
commit 2281b506711685465c5dd50d32c1ddcfa9735ee8 Author: Daniel Zaoui <[email protected]> Date: Wed May 28 09:32:56 2014 +0300 Eolian: fix issue for Windows. On Windows, '\' are used to separate the names of a path. It was not supported. This patch fixes that. Thanks to Vincent Torri for catching it (and good luck in Windows ;-)) @fix --- src/lib/eolian/eolian_database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c index 9bd7c61..83f34a8 100644 --- a/src/lib/eolian/eolian_database.c +++ b/src/lib/eolian/eolian_database.c @@ -1273,7 +1273,7 @@ eolian_directory_scan(const char *dir) { int len = strlen(file); int idx = len - 1; - while (idx >= 0 && file[idx] != '/') idx--; + while (idx >= 0 && file[idx] != '/' && file[idx] != '\\') idx--; eina_hash_add(_filenames, eina_stringshare_add_length(file+idx+1, len - idx - sizeof(EO_SUFFIX)), strdup(file)); } } --
