Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10027) (civclient:12460): Gtk-CRITICAL **: file gtktex
Home

[Freeciv-Dev] (PR#10027) (civclient:12460): Gtk-CRITICAL **: file gtktex

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10027) (civclient:12460): Gtk-CRITICAL **: file gtktextbuffer.c: line 548: assertion `g_utf8_validate (text, len, NULL)' failed
From: "Brett Albertson" <brett.albertson@xxxxxxxxxxxx>
Date: Fri, 10 Sep 2004 16:39:14 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [jdorje - Fri Sep 10 22:15:47 2004]:
> 
> Next, let's try to see where the 646 is coming from.  In fciconv.c 
there 
> is code like
> 
> #ifdef HAVE_LIBCHARSET
>      local_encoding = locale_charset();
> #else
> #ifdef HAVE_LANGINFO_CODESET
>      local_encoding = nl_langinfo(CODESET);
> #else
>      local_encoding = "";
> #endif
> #endif
> 
> I want to see which of these is returning the string "646".  So 
change 
> it to something like
> 
> #ifdef HAVE_LIBCHARSET
>      local_encoding = locale_charset();
>      printf("Locale_charset returned '%s.'\n", local_encoding);
> #else
> #ifdef HAVE_LANGINFO_CODESET
>      local_encoding = nl_langinfo(CODESET);
>      printf("nl_langinfo returned '%s.'\n", local_encoding);
> #else
>      local_encoding = "";
>      printf("Fallback to '%s.'\n", local_encoding);
> #endif
> #endif
> 
> and see what your output is.  Finally look for HAVE_LIBCHARSET and 
> HAVE_LANGINFO_CODESET in config.h and see what they say.  We could 
> reverse the precedence of these two calls but I don't know of any 
other 
> way to determine the charset.

root@dev-null # grep -i HAVE_LIBCHARSET config.h
/* #undef HAVE_LIBCHARSET */
root@dev-null # grep -i HAVE_LANGINFO_CODESET config.h
#define HAVE_LANGINFO_CODESET 1

dev-null:{bretta}$ civserver -f  civgame+1110md.sav.gz
entering init_character_encodings. <== I added this message
nl_langinfo returned 646.
Encodings: Data=UTF-8, Local=646, Internal=UTF-8
This is the server for Freeciv version 1.14.99-devel
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading rulesets
2: Now accepting new client connections.

For introductory help, type 'help'.
>
 

-- 
Brett Albertson
brett.albertson@xxxxxxxxxxxx


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