|
From: Mojca M. <moj...@gm...> - 2007-01-11 13:05:08
|
Hello,
Timoth=E9e asked me some time ago whether utf-8 works with wxt under mac.
The answer was "no".
But if I change:
gchar * gp_cairo_convert(plot_struct *plot, const char* string)
{
=09const char *charset =3D NULL;
=09gchar * string_utf8;
=09charset =3D gp_cairo_get_encoding(plot);
=09string_utf8 =3D g_convert(string, -1, "UTF-8", charset, &bytes_read,
NULL, &error);
into
=09string_utf8 =3D g_convert(string, -1, "UTF-8", "UTF-8", &bytes_read,
NULL, &error);
then it works OK. The encoding is set to 'default' in gnuplot itself,
locales are set to UTF-8, but apparently it's still thought that my
terminal works in "US-ASCII" encoding (apart from the fact that
command-line is completely confused if I try to use left-right arrow
or to delete anything: that still seems to be broken).
If I change encoding to ISO_8859_2 for example, then I don't get any
warning during conversion, but of course it doesn't work properly
either.
The next problem: I always get three warnings when I plot:
(process:26777): Pango-WARNING **: Error loading GDEF table 85
(process:26777): Pango-WARNING **: Error loading GPOS table 85
(process:26777): Pango-WARNING **: Error loading GSUB table 85
This doesn't happen if I also specify some font explicitely (set term
wxt font "validname").
Mojca
|