lilypond-user
[Top][All Lists]
Advanced

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

Re: convert-ly can't cope with accented filename


From: Bertalan Fodor (LilyPondTool)
Subject: Re: convert-ly can't cope with accented filename
Date: Tue, 05 Jan 2010 11:26:13 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

See http://www.amk.ca/python/howto/unicode

John Mandereau wrote:
Le mardi 05 janvier 2010 à 08:03 +1100, Nick Payne a écrit :
  
Try to run convert-ly on a file with an accented name and I get the 
following:

 > convert-ly --edit "/home/nick/lilypond/Bésard_preludio.ly"
convert-ly (GNU LilyPond) 2.13.10
Traceback (most recent call last):
   File "/usr/local/lilypond/usr/bin/convert-ly", line 337, in ?
     main ()
   File "/usr/local/lilypond/usr/bin/convert-ly", line 331, in main
     do_one_file (f)
   File "/usr/local/lilypond/usr/bin/convert-ly", line 233, in do_one_file
     ly.stderr_write (_ ("Processing `%s\'... ") % infile_name)
   File 
"/usr/local/lilypond/usr/share/lilypond/current/python/lilylib.py", line 
59, in stderr_write
     encoded_write (sys.stderr, s)
   File 
"/usr/local/lilypond/usr/share/lilypond/current/python/lilylib.py", line 
51, in encoded_write
     f.write (s.encode (f.encoding or 'utf_8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33: 
ordinal not in range(128)
    

This is a bug, the real question for fixing it is: how to figure out the
encoding of the filesystem in Python?

Thanks for the report,
John
  

_______________________________________________ bug-lilypond mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bug-lilypond


reply via email to

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