Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] (PR#12334) wrong sorting of techs
Home

[Freeciv-Dev] (PR#12334) wrong sorting of techs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#12334) wrong sorting of techs
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Fri, 22 Apr 2005 17:55:59 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12334 >

> [jdorje - Sat Apr 23 00:39:00 2005]:
> 
> This should be trivial to fix, but the problem only exists in 2.0. 
> Vasco can you fix it?

How about this?

Index: client/gui-gtk-2.0/repodlgs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/repodlgs.c,v
retrieving revision 1.85
diff -u -r1.85 repodlgs.c
--- client/gui-gtk-2.0/repodlgs.c       15 Apr 2005 22:53:30 -0000      1.85
+++ client/gui-gtk-2.0/repodlgs.c       23 Apr 2005 00:54:56 -0000
@@ -408,7 +408,7 @@
     b_str=text_b;
   }
 
-  return strcmp(a_str,b_str);
+  return g_utf8_collate(a_str,b_str);
 }
 
 /****************************************************************

[Prev in Thread] Current Thread [Next in Thread]