gnuplot 4.4 patchlevel 3 can't input international characters in interactive mode
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:/
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-
--with-
--with-
...
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
ProcVersionSign
Uname: Linux 3.2.0-32-generic i686
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu14
Architecture: i386
Date: Sat Oct 20 03:02:23 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
PackageArchitec
SourcePackage: gnuplot
UpgradeStatus: Upgraded to precise on 2012-05-09 (163 days ago)
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