Revision: 1355
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1355&view=rev
Author:   zas_
Date:     2009-01-26 08:30:30 +0000 (Mon, 26 Jan 2009)

Log Message:
-----------
Fix a major bug in utf8_compare(): when case_sensitive is true, s1_t and s2_t 
were uninitialized, leading to unpredicable results.

Modified Paths:
--------------
    trunk/src/misc.c

Modified: trunk/src/misc.c
===================================================================
--- trunk/src/misc.c    2009-01-25 19:38:31 UTC (rev 1354)
+++ trunk/src/misc.c    2009-01-26 08:30:30 UTC (rev 1355)
@@ -44,6 +44,11 @@
                s1_t = g_utf8_casefold(s1, -1);
                s2_t = g_utf8_casefold(s2, -1);
                }
+       else
+               {
+               s1_t = (gchar *) s1;
+               s2_t = (gchar *) s2;
+               }
 
        s1_key = g_utf8_collate_key(s1_t, -1);
        s2_key = g_utf8_collate_key(s2_t, -1);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to