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
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

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

Reply via email to