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: Dmytro O. Redchuk
Subject: Re: Persistent error on 'make': [Python] ordinal not in range(128)
Date: Wed, 16 Mar 2011 09:34:24 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed 16 Mar 2011, 08:23 Francisco Vila wrote:
> Well, I don't understand why it works, but I have completed 'make' and
> 'make doc' only after this change:
> 
> 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'))
> 
>  # ugh, Python 2.5 optparse requires Unicode strings in some argument
>  # functions, and refuse them in some other places
This is related to at least 1054 and 1073, by the way.

-- 
  Dmytro O. Redchuk
  Bug Squad



reply via email to

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