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

utf-8 and gnuplot


I would like to use gnuplot with my locale environment set
to UTF-8. However, when the gnuplot terminal is set to x11,
the utf-8 strings are interpreted as iso-8859-1. If the
gnuplot terminal is set to png, the strings are drawn as if
they were iso-8859-2. I filled a bug report to gnuplot, but
the developer told me that gnuplot has no problem and that I
have to choose an utf-8 font:


Then, my question is: How can I find such an utf-8 font?

I used xfontsel to search for an utf-8 font, and I put the
only font whose encoding (according to xfontsel) was "u"
into my .Xresources in the hope that this "u" meant "utf-8":

gnuplot*font: -xos4-terminus-medium-r-normal-*-12-120-75-75-c-*-*-u

It didn't work. Indeed, it seems that the "u" doesn't mean
"utf-8". I, then, installed the package xfonts-efont-unicode
and put in my .Xresources:

gnuplot*font: -efont-*-*-*-*-*-12-*-*-*-*-*-*-*

It also didn't work. And it's strange, because I use
"Monospace" (which seems to be the same "Bitstream Vera Sans
Mono") with my text editor and I can see Arabic, Chinese,
Korean, Russian, etc... characters in a single .desktop
file, but the Bitstream font also doesn't work for non-ascii
characters with gnuplot if the locale is UTF-8:

gnuplot*font: -bitstream-*-*-*-*-*-12-*-*-*-*-*-*-*

I'm using XOrg (6.9.0.dfsg.1-4), and below, there is
additional information about my system:

$ uname -a
Linux debian 2.6.12-1-amd64-k8 #1 Wed Sep 28 02:31:26 CEST 2005 x86_64 GNU/Linux

$ cat /etc/locale.gen
en_US.UTF-8 UTF-8
fr_FR.UTF-8 UTF-8
pt_BR.UTF-8 UTF-8

$ locale |grep LANG


Jakson A. Aquino

Reply to: