[gcompris/gcomprixogoo] Fixed a startup issue on windows. Our gc_file_find_absolute() was not working with locale without '.



commit 510dfba8aebeb94a2efbe88c7576985bb5265706
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Nov 1 00:19:17 2010 +0100

    Fixed a startup issue on windows. Our gc_file_find_absolute() was not working with locale without '.'.

 src/gcompris/gameutil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcompris/gameutil.c b/src/gcompris/gameutil.c
index a1f643e..3f4b98f 100644
--- a/src/gcompris/gameutil.c
+++ b/src/gcompris/gameutil.c
@@ -608,7 +608,7 @@ gc_file_find_absolute(const gchar *format, ...)
 	  gchar *filename2;
 
 	  locale = g_strsplit_set(gc_locale_get(), ".", 2);
-	  if(g_strv_length(locale) <= 1)
+	  if(g_strv_length(locale) < 1)
 	    {
 	      absolute_filename = g_strdup("");
 	      goto NOT_FOUND;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]