Unfortunately here the problem is that gnuplot cannot be linked against libreadline in Debian/Ubuntu because readline is GPL (see for instance /usr/share/doc/gnuplot/README.Debian). So instead gnuplot uses libedit which has poor support for non-ascii characters. There is a bug in Debian about improving the support, but it doesn't seem to have been looked at recently http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273002
Looking at a similar bug in postgresql (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608442) it seems as users we can workaround the issue without recompiling by using LD_PRELOAD. On my system, the following works (you would need to replace the path with the correct one on your system):
Unfortunately here the problem is that gnuplot cannot be linked against libreadline in Debian/Ubuntu because readline is GPL (see for instance /usr/share/ doc/gnuplot/ README. Debian) . So instead gnuplot uses libedit which has poor support for non-ascii characters. There is a bug in Debian about improving the support, but it doesn't seem to have been looked at recently http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 273002
Looking at a similar bug in postgresql (http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 608442) it seems as users we can workaround the issue without recompiling by using LD_PRELOAD. On my system, the following works (you would need to replace the path with the correct one on your system):
LD_PRELOAD= /lib/x86_ 64-linux- gnu/libreadline .so.6 gnuplot