Re: weird i18n problem on Windows XP Home



On Feb 8, 2008 10:10 AM, Allin Cottrell <cottrell wfu edu> wrote:

I've received a strange problem report about the win32 version of
my GTK app running on XP Home in Spanish on an ACER 1691 laptop
(setlocale gives "Spanish_Spain.1252").

Window titles are managed by gettext, as in

 title = g_strdup(_("gretl: command script"));
 gtk_window_set_title(GTK_WINDOW(foo), title);

so when running in Spanish some window titles will contain
accented characters.  For example, the above becomes

 gretl: gui\'on de instrucciones

(represented as TeX for email purposes).

The problem is that such windows are not opening, with an error
of "hay una secuencia de bytes no v\'alida en la entrada de
conversi\'on".

Many people are running the program in Spanish without this
problem; there seems to be something about this XP installation
that is tricking glib.  Any notions what might be wrong?


Which version of GTK+ are you using?

I don't know if this is relevant to the problem you're seeing, but the win32
port of GTK+ doesn't fully support non-ascii window titles until 2.12.0.

The other thing I can think of is that message in the Spanish .po file may
not be correctly encoded. I would expect msgfmt to warn you if this is the
case.

-D



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