On Thu, Mar 17, 2011 at 02:27:20PM +0100, Francisco Vila wrote: > 2011/3/17 Graham Percival <gra...@percival-music.ca>: > > On Wed, Mar 16, 2011 at 09:34:24AM +0200, Dmytro O. Redchuk wrote: > >> On Wed 16 Mar 2011, 08:23 Francisco Vila wrote: > >> > diff --git a/python/lilylib.py b/python/lilylib.py > >> > index 3bf77f6..4be48e7 100644 > >> > --- a/python/lilylib.py > >> > +++ b/python/lilylib.py > >> > @@ -48,7 +48,7 @@ underscore = _ > >> > # Maybe guess encoding from LANG/LC_ALL/LC_CTYPE? > >> > > >> > def encoded_write(f, s): > >> > - f.write (s.encode (f.encoding or 'utf_8')) > >> > + f.write (s.encode ('utf_8')) > > > > Note that this patch breaks compiling. > > In my case, it _allowed_ compiling to finish.
Well, maybe somebody could spend 15 making this work, then we wouldn't need to discuss it any more? IIRC, the error message was "Nonetype has no member .encode", or something like that. I know I copied it into an email to -devel. It's pretty easy to check if s is None or not, in python. The error is therefore pretty easy to avoid. Cheers, - Graham _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel