When enforcing Japanese as language for the wgnuplot menu items with Language=ja in wgnuplot.ini on a non S-JIS system, characters are garbled as shown in the screen shot. This is confirmed for all versions since 5.0.
The reason is that wgnuplot-ja.mnu is encoded in S-JIS, but interpreted using the system's default "ANSI" codepage. On my system that would be CP1252. To fix this, we can either make sure that we always use the file's encoding to read the file, or just require that all .mnu files are encoded in UTF-8. @shige-takeno, what is your opinion on this?
Note that this should not be an issue on Japanese Windows systems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately, there's no work-around for the current situation.
A straightforward fix to the source can be found in [merge-requests:#14] for discussion.
Last edit: Bastian Märkisch 2021-01-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have given no hint as to what commands you gave for either input or output. How can we possibly debug this?
When enforcing Japanese as language for the wgnuplot menu items with
Language=jain wgnuplot.ini on a non S-JIS system, characters are garbled as shown in the screen shot. This is confirmed for all versions since 5.0.The reason is that wgnuplot-ja.mnu is encoded in S-JIS, but interpreted using the system's default "ANSI" codepage. On my system that would be CP1252. To fix this, we can either make sure that we always use the file's encoding to read the file, or just require that all .mnu files are encoded in UTF-8.
@shige-takeno, what is your opinion on this?
Note that this should not be an issue on Japanese Windows systems.
Unfortunately, there's no work-around for the current situation.
A straightforward fix to the source can be found in [merge-requests:#14] for discussion.
Last edit: Bastian Märkisch 2021-01-13
If you don't want to see Japanese (garbled) menu, uninstall and reinstall the gnuplot WITHOUT "Japanese Language Support".
Fixed in version 5.5.
@shige-takeno, please note that menu files now need to be encoded in UTF-8 for version 5.5.