[vlc-commits] playlist/directory: ignore case when comparing files without strcoll

Thomas Guillem git at videolan.org
Fri Feb 12 11:47:43 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 12 11:45:18 2016 +0100| [1bfeccd76a52b66554e1d8acefc95f1981564a5b] | committer: Thomas Guillem

playlist/directory: ignore case when comparing files without strcoll

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1bfeccd76a52b66554e1d8acefc95f1981564a5b
---

 modules/demux/playlist/directory.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/playlist/directory.c b/modules/demux/playlist/directory.c
index e43aa6d..f6b0bf1 100644
--- a/modules/demux/playlist/directory.c
+++ b/modules/demux/playlist/directory.c
@@ -125,9 +125,10 @@ static int compar_collate( input_item_t *p1, input_item_t *p2 )
         return i_ret;
 
 #ifdef HAVE_STRCOLL
+    /* The program's LOCAL defines if case is ignored */
     return strcoll( p1->psz_name, p2->psz_name );
 #else
-    return strcmp( p1->psz_name, p2->psz_name );
+    return strcasecmp( p1->psz_name, p2->psz_name );
 #endif
 }
 



More information about the vlc-commits mailing list