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: Francisco Vila
Subject: Re: Persistent error on 'make': [Python] ordinal not in range(128)
Date: Wed, 16 Mar 2011 15:52:35 +0100

2011/3/16 Dmytro O. Redchuk <address@hidden>:
> 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.

Thanks a lot.  Do you know how to prevent this to happen? I did not
(consciously) change anything and the very same system was compiling
fine the day before.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com



reply via email to

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