bug-lilypond
[Top][All Lists]
Advanced

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

Re: midi2ly crashed with UnicodeDecodeError in convert_midi()


From: Jan Nieuwenhuizen
Subject: Re: midi2ly crashed with UnicodeDecodeError in convert_midi()
Date: Fri, 18 Mar 2011 16:20:45 +0100

Francisco Vila schreef op vr 18-03-2011 om 12:46 [+0100]:
> 2011/3/14 Graham Percival <address@hidden>:

>   File "/usr/local/bin/midi2ly", line 1047, in convert_midi
>     progress (_ ("%s output to `%s'...") % ('LY', out_file))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 4: ordinal not in range(128)
> 
> patch in 
> http://lists.gnu.org/archive/html/lilypond-devel/2011-03/msg00420.html
> from Jan is applied.

Interesting.  For me it works (see below).  I assume you did
make -C python?

Waitaminute.  Ah, I have a utf-8 locale.  You must set LANG=C
for it to break. see below below.  With new patch.

Jan.


16:11:00 address@hidden:~/vc/lilypond
$ PATH=~/vc/lilypond/out/bin:$PATH lilypond minué
GNU LilyPond 2.13.55
Verwerken van `minué.ly'
Ontleden...
minué.ly:0: waarschuwing:  geen \version uitdrukking gevonden, voeg

\version "2.13.55"

toe voor toekomstige compatibiliteit
Vertolken van muziek...
MIDI uitvoer naar minué.midi...
succes: Samenstellen met succes voltooid
16:11:18 address@hidden:~/vc/lilypond
$ PATH=~/vc/lilypond/out/bin:$PATH midi2ly minué
LY uitvoer naar `minué-midi.ly'...


=====

$ PATH=~/vc/lilypond/out/bin:$PATH LANG=c midi2ly minué
Traceback (most recent call last):
  File "/home/janneke/vc/lilypond/out/bin/midi2ly", line 1207, in
<module>
    main ()
  File "/home/janneke/vc/lilypond/out/bin/midi2ly", line 1204, in main
    convert_midi (f, o)
  File "/home/janneke/vc/lilypond/out/bin/midi2ly", line 1047, in
convert_midi
    progress (_ ("%s output to `%s'...") % ('LY', out_file))
  File "/home/janneke/vc/lilypond/out/bin/midi2ly", line 106, in
progress
    ly.encoded_write (errorport, s + '\n')
  File
"/home/janneke/vc/lilypond/out/lib/lilypond/current/python/lilylib.py",
line 57, in encoded_write
    f.write (s.encode (f.encoding or 'utf-8'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 18: ordinal not in range(128)

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

Attachment: 0001-lilylib-handle-encodings.-Fixes-1073-and-u-714213.patch
Description: Text Data


reply via email to

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