gnuplot 4.4 patchlevel 3 can't input international characters in interactive mode

Bug #1068815 reported by Z.X.Lyn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnuplot (Ubuntu)
New
Undecided
Unassigned

Bug Description

I can't input chinese character in the interactive mode.a similar bug was found here:

https://bugs.launchpad.net/ubuntu/+source/gnuplot/+bug/377525

Why the bug was still "new" and "undicided" till now?

It seems that the bug was a compile configure error.
I compiled the 4.6 version of gnuplot with default configure option and it WORKS FINE with Chinese character.

Note that the

 ./configure --help

shows:
...
  --with-readline=builtin use the built-in readline
  --with-readline=gnu use the GNU readline library (default if present)
  --with-readline=bsd use the NetBSD editline library (NB: does not handle UTF-8!)
...
readline of bsd does not support UTF-8.

Hope this bug be fixed soon.

Best regards.
.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnuplot 4.4.3-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic i686
NonfreeKernelModules: wl fglrx
ApportVersion: 2.0.1-0ubuntu14
Architecture: i386
Date: Sat Oct 20 03:02:23 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
PackageArchitecture: all
SourcePackage: gnuplot
UpgradeStatus: Upgraded to precise on 2012-05-09 (163 days ago)

Revision history for this message
Z.X.Lyn (newzxl) wrote :
Revision history for this message
Jason Conti (jconti) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.