Mailinglist Archive: opensuse-m17n (60 mails)
| < Previous | Next > |
ghostscript (was: ghostscript and LyX-CJK)
- From: Mike FABIAN <mfabian@xxxxxxx>
- Date: Tue, 21 Jun 2005 09:11:20 +0000 (UTC)
- Message-id: <s3tmzpkkrbe.fsf@xxxxxxxxxxxxxxxx>
hisha <dmtaisaku@xxxxxxxxxxx> さんは書きました:
> Next, ghostview. I took an example file, like
> http://www.suse.de/~mfabian/suse-cjk/vertical-orizontal-test.ps
> I verified that I can open this in my old SUSE8.2 and see
> all characters correctly.
> Next, I open it with gs as normal user in 9.3, from bash.
> The result are Mojibake and the messages:
> ---
> gs vertical-horizontal-test.ps
> ESP Ghostscript 8.15 (2004-09-22)
> Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights
> reserved.
> This software comes with NO WARRANTY: see the file COPYING
> for details.
> Scanning /usr/X11R6/lib/X11/fonts/ for fonts... 12 files,
> 12 scanned, 0 new fonts.
> Scanning /usr/share/fonts/ for fonts... 2 files, 2
> scanned, 0 new fonts.
> Can't find (or can't open) font file
> /home/hisha/Resource/Font/Ryumin-Light-UniJIS-UTF8-V.
> Can't find (or can't open) font file
> Ryumin-Light-UniJIS-UTF8-V.
'/home/hisha' is weird!
I found that the problem is caused by the environment
variable GS_LIB. Apparently KDE sets it to
GS_LIB=/home/hisha/.fonts
If you unset this variable, ghostscript works again.
Therefore the problem doesn't happen if you don't use KDE and it also
disappears after 'su -' because then you do not have GS_LIB in the
environment anymore.
As a temporary workaround, you can add
unset GS_LIB
to your ~/.profile.
I'll check now out why KDE sets this environment variable.
--
Mike FABIAN <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
> Next, ghostview. I took an example file, like
> http://www.suse.de/~mfabian/suse-cjk/vertical-orizontal-test.ps
> I verified that I can open this in my old SUSE8.2 and see
> all characters correctly.
> Next, I open it with gs as normal user in 9.3, from bash.
> The result are Mojibake and the messages:
> ---
> gs vertical-horizontal-test.ps
> ESP Ghostscript 8.15 (2004-09-22)
> Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights
> reserved.
> This software comes with NO WARRANTY: see the file COPYING
> for details.
> Scanning /usr/X11R6/lib/X11/fonts/ for fonts... 12 files,
> 12 scanned, 0 new fonts.
> Scanning /usr/share/fonts/ for fonts... 2 files, 2
> scanned, 0 new fonts.
> Can't find (or can't open) font file
> /home/hisha/Resource/Font/Ryumin-Light-UniJIS-UTF8-V.
> Can't find (or can't open) font file
> Ryumin-Light-UniJIS-UTF8-V.
'/home/hisha' is weird!
I found that the problem is caused by the environment
variable GS_LIB. Apparently KDE sets it to
GS_LIB=/home/hisha/.fonts
If you unset this variable, ghostscript works again.
Therefore the problem doesn't happen if you don't use KDE and it also
disappears after 'su -' because then you do not have GS_LIB in the
environment anymore.
As a temporary workaround, you can add
unset GS_LIB
to your ~/.profile.
I'll check now out why KDE sets this environment variable.
--
Mike FABIAN <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
| < Previous | Next > |