lilypond-devel
[Top][All Lists]
Advanced

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

Re: Persistent error on 'make': [Python] ordinal not in range(128)


From: Graham Percival
Subject: Re: Persistent error on 'make': [Python] ordinal not in range(128)
Date: Thu, 17 Mar 2011 18:54:40 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Mar 17, 2011 at 02:27:20PM +0100, Francisco Vila wrote:
> 2011/3/17 Graham Percival <address@hidden>:
> > 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



reply via email to

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