bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ghostscript fails with special characters in filename


From: ian_hulin
Subject: Re: Ghostscript fails with special characters in filename
Date: Wed, 19 Aug 2009 18:41:57 -0700 (PDT)

I've just been investigating this a bit more and have finally managed to
install ghostscript 8.70 on my system.  
If I compile a .ly file which will cause a .pdf and .ps file to have 16-bit
Unicode characters (like čača by setting output-suffix to a string
containing such characters lilypond barfs when trying to generate the .pdf
file:

GNU LilyPond 2.13.3
Processing `Exsultate.ly'
Parsing...
Interpreting music... 
Preprocessing graphical objects...
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Layout output to `Exsultate-Allegro-čača.ps'...
Converting to `./Exsultate-Allegro-čača.pdf'...
`gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite
-sOutputFile="./Exsultate-Allegro-�\x8da�\x8da.pdf" -c .setpdfwrite -f
"Exsultate-Allegro-�\x8da�\x8da.ps"' failed (256)
error: failed files: "Exsultate.ly"

However if I patch up the failed command line and invoke gs 8.70 from the
command line this happens:
$ gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite
-sOutputFile="./Exsultate-Allegro-čača.pdf" -c .setpdfwrite -f
"Exsultate-Allegro-čača.ps"
$ 
I.e. it works.

Lilypond is still using gs V8.65 as shown by this:
$ lilypond --verbose Exsultate.ly
GNU LilyPond 2.13.3
warning: Relocation: is absolute: argv0=/usr/local/lilypond/usr/bin/lilypond
PATH=/usr/local/lilypond/usr/bin (prepend)
Setting PATH to
/usr/local/lilypond/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
warning: Relocation: compile datadir=, new
datadir=/usr/local/lilypond/usr/share/lilypond//current
warning: Relocation: framework_prefix=/usr/local/lilypond/usr/bin/..
Setting INSTALLER_PREFIX to /usr/local/lilypond/usr/bin/..
Relocation file: /usr/local/lilypond/usr/bin/../etc/relocate//gs.reloc
warning: no such directory:
/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/fonts for GS_FONTPATH
warning: no such directory: /usr/local/lilypond/usr/bin/../share/gs/fonts
for GS_FONTPATH
GS_LIB=/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource
(prepend)
Setting GS_LIB to
/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource
GS_LIB=/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/lib (prepend)
Setting GS_LIB to
/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/lib:/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource
GS_LIB=/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource/Init
(prepend)
Setting GS_LIB to
/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource/Init:/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/lib:/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource
Relocation file:
/usr/local/lilypond/usr/bin/../etc/relocate//fontconfig.reloc
Setting FONTCONFIG_FILE to
/usr/local/lilypond/usr/bin/../etc/fonts/fonts.conf
Setting FONTCONFIG_PATH to /usr/local/lilypond/usr/bin/../etc/fonts
Relocation file: /usr/local/lilypond/usr/bin/../etc/relocate//pango.reloc
Setting PANGO_RC_FILE to /usr/local/lilypond/usr/bin/../etc/pango/pangorc
Setting PANGO_PREFIX to /usr/local/lilypond/usr/bin/../
Setting PANGO_MODULE_VERSION to 1.6.0
Relocation file: /usr/local/lilypond/usr/bin/../etc/relocate//guile.reloc
GUILE_LOAD_PATH=/usr/local/lilypond/usr/bin/../share/guile/1.8 (prepend)
Setting GUILE_LOAD_PATH to /usr/local/lilypond/usr/bin/../share/guile/1.8
PATH=/usr/local/lilypond/usr/bin/../bin (prepend)
Setting PATH to
/usr/local/lilypond/usr/bin/../bin:/usr/local/lilypond/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Setting GUILE_MIN_YIELD_1 to 65
Setting GUILE_MIN_YIELD_2 to 65
Setting GUILE_MIN_YIELD_MALLOC to 65
Setting GUILE_INIT_SEGMENT_SIZE_1 to 10485760
Setting GUILE_MAX_SEGMENT_SIZE to 104857600

LILYPOND_DATADIR="/usr/share/lilypond/2.13.3"
LOCALEDIR="/usr/share/locale"

Effective prefix: "/usr/local/lilypond/usr/share/lilypond/current"
FONTCONFIG_FILE="/usr/local/lilypond/usr/bin/../etc/fonts/fonts.conf"
FONTCONFIG_PATH="/usr/local/lilypond/usr/bin/../etc/fonts"
GS_LIB="/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource/Init:/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/lib:/usr/local/lilypond/usr/bin/../share/ghostscript/8.65/Resource"
GUILE_LOAD_PATH="/usr/local/lilypond/usr/bin/../share/guile/1.8"
PANGO_RC_FILE="/usr/local/lilypond/usr/bin/../etc/pango/pangorc"
PANGO_PREFIX="/usr/local/lilypond/usr/bin/../"
PATH="/usr/local/lilypond/usr/bin/../bin:/usr/local/lilypond/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
[/usr/local/lilypond/usr/share/lilypond/current/scm/lily.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/lily-library.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/file-cache.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-event-classes.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-music-types.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/output-lib.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/c++.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/chord-ignatzek-names.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/chord-entry.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/chord-generic-names.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/stencil.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/markup.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/music-functions.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/part-combiner.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/autochange.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-music-properties.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/auto-beam.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/chord-name.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/parser-ly-from-scheme.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/ly-syntax-constructors.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-context-properties.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/translation-functions.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/script.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/midi.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/layout-beam.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/parser-clef.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/layout-slur.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/font.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/encoding.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/flag-styles.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/fret-diagrams.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/harp-pedals.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/predefined-fretboards.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-markup-commands.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-grob-properties.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-grobs.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-grob-interfaces.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/define-stencil-commands.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/titling.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/paper.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/backend-library.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/x11-color.scm]
[/usr/local/lilypond/usr/share/lilypond/current/scm/safe-lily.scm]
Initializing FontConfig...
adding font directory:
/usr/local/lilypond/usr/share/lilypond/current/fonts/otf
adding font directory:
/usr/local/lilypond/usr/share/lilypond/current/fonts/type1
Building font database.

Processing `Exsultate.ly'
Parsing...
[/usr/local/lilypond/usr/share/lilypond/current/ly/init.ly
 [/usr/local/lilypond/usr/share/lilypond/current/ly/declarations-init.ly
  [/usr/local/lilypond/usr/share/lilypond/current/ly/markup-init.ly]
 
[/usr/local/lilypond/usr/share/lilypond/current/ly/music-functions-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/toc-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/nederlands.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/drumpitch-init.ly]
 
[/usr/local/lilypond/usr/share/lilypond/current/ly/chord-modifiers-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/script-init.ly]
 
[/usr/local/lilypond/usr/share/lilypond/current/ly/scale-definitions-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/grace-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/midi-init.ly
   [/usr/local/lilypond/usr/share/lilypond/current/ly/performer-init.ly]]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/paper-defaults-init.ly
   [/usr/local/lilypond/usr/share/lilypond/current/ly/titling-init.ly]]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/engraver-init.ly]
 
[/usr/local/lilypond/usr/share/lilypond/current/ly/dynamic-scripts-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/spanners-init.ly]
  [/usr/local/lilypond/usr/share/lilypond/current/ly/property-init.ly]
 
[/usr/local/lilypond/usr/share/lilypond/current/ly/predefined-fretboards-init.ly]]
 [Exsultate.ly
  [/usr/local/lilypond/usr/share/lilypond/current/ly/english.ly]
Interpreting music... 
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-20.otf]
elapsed time: 0.14 seconds
Element count 357 (spanners 49) 
Preprocessing graphical objects...
Grob count 529
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-11.otf]
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-13.otf]
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-14.otf]
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-16.otf]
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-18.otf]
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-23.otf]
[century_schoolbook_l_bold_3.865234375]
[century_schoolbook_l_3.865234375]
[century_schoolbook_l_bold_6.1357421875]
[century_schoolbook_l_bold_4.337890625]
[century_schoolbook_l_bold_3.443359375]
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Element count 256

[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/aybabtu.otf]
Layout output to `Exsultate-Allegro-čača.ps'...
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Bold.otf]
[/usr/local/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Roma.otf][/usr/local/lilypond/usr/share/lilypond/current/ps/music-drawing-routines.ps]
[/usr/local/lilypond/usr/share/lilypond/current/ps/lilyponddefs.ps]
Converting to `./Exsultate-Allegro-čača.pdf'...
Invoking `gs  -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite
-sOutputFile="./Exsultate-Allegro-�\x8da�\x8da.pdf" -c .setpdfwrite -f
"Exsultate-Allegro-�\x8da�\x8da.ps"'...GPL Ghostscript SVN PRE-RELEASE 8.65
(2009-02-04)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (Exsultate-Allegro-\304\\x8da\304\\x8da.ps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1150/1684(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript SVN PRE-RELEASE 8.65: Unrecoverable error, exit code 1

`gs  -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite
-sOutputFile="./Exsultate-Allegro-�\x8da�\x8da.pdf" -c .setpdfwrite -f
"Exsultate-Allegro-�\x8da�\x8da.ps"' failed (256)
error: failed files: "Exsultate.ly"

So, is the failure being caused by using ghostscript V8.65 instead of V8.70,
or is Lilypond generating a command line with corrupted characters which
ghostscript then chokes on?

Is this worth a bug tracker, Valentin?

Cheers,

Ian

 


Patrick McCarty-3 wrote:
> 
> On Sat, Aug 08, 2009 at 03:45:25PM +0200, Valentin Villenave wrote:
>> 2009/8/4 Harmath Dénes <address@hidden>:
>> > No. It otherwise works perfectly on an Intel Mac. It only fails always
>> with
>> > the mentioned characters. (Strangely, similar special characters, like
>> ű or
>> > ê, work).
>> 
>> Could you run lilypond --verbose on your file? That still looks a lot
>> like #811; perhaps I'll Fwd it to the ghostscript team.
> 
> Also note that Ghostscript 8.70 has been released, which I am
> currently using.
> 
> Maybe 8.70 final has fixed the problem, as I can't seem to reproduce
> this problem here...
> 
> -Patrick
> 
> 
> _______________________________________________
> bug-lilypond mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-lilypond
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ghostscript-fails-with-special-characters-in-filename-tp24799271p25054809.html
Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]