Red Hat Bugzilla – Bug 135239
Bad iso8859-2 encoding
Last modified: 2007-11-30 17:10:51 EST
Description of problem:
Gnuplot generate bad format for PostScrip document wiht
iso8859-2 encoding and no generate Polish letters on X11.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create sample file from gnuplot samples
2.Insert section "set encoding iso_8859-2" into top of document
3.Realize graph to X11 window or PostScript file
I've tried what you described and got perfectly working postscript
What exactly did you try and what was the error message?
Read ya, Phil
I probably know why Dariusz filed this bug.
Save attached file and run 'gnuplot polish-letters-sample.gp'. You won't see
polish characters in title. The file have ISO-8859-2 encoding.
When I recode this file to UTF-8 and remove set encoding line I still can't get
polish chars on screen.
Created attachment 120207 [details]
Polish chars test file
Tested on gnuplot-4.0.0-7 (FC4)
The short answer to this problem is that gnuplot 4.0 is badly broken with
respect to UTF-8. It's basically always choosing an ISO-8859-1 font.
The first type of bad display is what happens when gnuplot attempts to display
ISO-8859-2 characters by choosing the correct codepoints, but from an ISO-8859-1
font. The second type of bad display (after converting to UTF-8) is that
gnuplot is again using an ISO-8859-1 font and interpreting the codepoints as
codepoints in ISO-8859-1, but this time some of the characters are multibyte,
and in any case the bytes are different.
gnuplot 4.1/4.2 (in CVS) fixes a lot of this:
4.2 is supposed to be out very shortly, which should really make solving the
issue a lot easier (though not perfect), by adding UTF-8 support. In fact, the
last minute comments before final release on the development mailing list for
gnuplot address this very issue of switching between different font encodings.
I'd say that this cannot be fixed until 4.2 is released.
Fixed with gnuplot-4.2.0-1.fc8.