[Top][All Lists]
[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
- Persistent error on 'make': [Python] ordinal not in range(128), Francisco Vila, 2011/03/15
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Francisco Vila, 2011/03/16
- Re: Persistent error on 'make': [Python] ordinal not in range(128),
Dmytro O. Redchuk <=
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Graham Percival, 2011/03/17
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Francisco Vila, 2011/03/17
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Graham Percival, 2011/03/17
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Jan Nieuwenhuizen, 2011/03/17
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Francisco Vila, 2011/03/18
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Francisco Vila, 2011/03/18
- Re: Persistent error on 'make': [Python] ordinal not in range(128), Graham Percival, 2011/03/18