Re: convert-ly can't cope with accented filename
On Mon, Jan 4, 2010 at 10:03 PM, Nick Payne wrote: > Try to run convert-ly on a file with an accented name and I get the > following: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33: Greetings, I've pushed a fix for this. Let me know if it works better (you might have to wait for the next development version). Cheers, Valentin ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: convert-ly can't cope with accented filename
John Mandereau-2 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: >> > > as a little workaround use the shortname of the file with special characters. you can find this using the dos command dir /X *.ly copy the shortname of the file you want, and invoke convert-ly with the pasted shortname i tried this on windows and it works! -- View this message in context: http://old.nabble.com/Re%3A-convert-ly-can%27t-cope-with-accented-filename-tp27024744p27026729.html Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com. ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: convert-ly can't cope with accented filename
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
Re: convert-ly can't cope with accented filename
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 signature.asc Description: Ceci est une partie de message numériquement signée ___ bug-lilypond mailing list bug-lilypond@gnu.org http://lists.gnu.org/mailman/listinfo/bug-lilypond