Bug 135239
Summary: | Bad iso8859-2 encoding | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dariusz Knociński <dknoto> | ||||
Component: | gnuplot | Assignee: | Ivana Varekova <varekova> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6 | CC: | mgarski | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-05-21 13:17:55 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Dariusz Knociński
2004-10-11 09:35:08 UTC
I've tried what you described and got perfectly working postscript files afterwards. 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: http://statist.wald.intevation.org/utf8.html http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/demo/utf8.dem?revision=1.3&view=markup 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. |