Created attachment 5203 [details] An example hello_xfig.fig file with greek letters xfig does not input greek letters from "symbol font" or display "symbol font" in unicode locale like ru_RU.UTF-8. An example hello_xfig.fig file with greek letters is attached. hello_xfig.fig opens and processes to ps w/o any problem in C and en_US locale, but fails to be processed correctly in ru_RU.UTF-8. Since ru_RU.UTF-8 is default locale, xfig should be run explicitly in en_US locale in xfig.desktop file disregard of user's locale. Localization does not matter, as xfig does not have one.
Created attachment 5204 [details] PostScript export of hello_xfig.fig file with greek letters
The problem with Greek symbols in UTF8 locale can easily be solved. I am building 3.2.5b-alt4 with the fix now. But there is still a great problem with UTF8 (and other multibyte) locales. Xfig itself works well with it, but transfig can't put multibyte symbols into Postscript (afaik there is some difficulties with multibyte charsets in Postscript). You can work with russian letters in xfig in the UTF8 locale, but you can't correctly export these letters in ps, png and so on...
xfig-3.2.5b-alt4 -> sisyphus: * Mon Nov 14 2011 Vladislav Zavjalov <slazav@altlinux> 3.2.5b-alt4 - don't use fontsets for symbols and dingbats fonts (closes #26579)
thank you! please, backport it to p6 or t6 as well. Also, better safe than sorry, I'd recommend to put xfig in a wrapper to avoid using utf-8 locales. like --------------xfig.sh------ #!/bin/sh case $LANG in *ru_RU.UTF-8) LANG=ru_RU.KOI8-R;; *uk_UA.UTF-8) LANG=uk_UA.KOI8-U;; esac export LANG; xfig "$@"
(added us, fixed misprint) #!/bin/sh case $LANG in en_US.UTF-8) LANG=en_US.8859-1;; ru_RU.UTF-8) LANG=ru_RU.KOI8-R;; uk_UA.UTF-8) LANG=uk_UA.KOI8-U;; esac export LANG; xfig "$@"
OK, I'll do it.
thanks!