Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#10063) freelog cores in client if registry.c has a
Home

[Freeciv-Dev] Re: (PR#10063) freelog cores in client if registry.c has a

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#10063) freelog cores in client if registry.c has an error
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 12 Sep 2004 03:48:07 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10063 >

The below patch fixes the problem, and is committed. Why don't we call
this in client common code? Then clients that have more advanced ways to
handle it can do so. But client code should not be broken by default.

Index: gui_main.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-ftwl/gui_main.c,v
retrieving revision 1.1
diff -u -r1.1 gui_main.c
--- gui_main.c  29 Jul 2004 14:10:13 -0000      1.1
+++ gui_main.c  12 Sep 2004 10:45:11 -0000
@@ -19,6 +19,7 @@
 #include <assert.h>

 #include "fcintl.h"
+#include "fciconv.h"
 #include "log.h"
 #include "registry.h"

@@ -177,6 +178,8 @@
   struct ct_size res;
   struct ct_size size;

+  init_character_encodings(NULL);
+
   if (!auto_connect) {
     die("Connection dialog not yet implemented. Start client using "
         "the -a option.");





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