Other problems with encodings

This commit is contained in:
Thomas Nagy 2014-09-28 19:27:02 +02:00
parent 608c2c51e1
commit c35c7237d6
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
4 changed files with 7 additions and 6 deletions

View File

@ -10,6 +10,8 @@ NEW IN WAF 1.8.0
* Console handling improvements
* Properly-sized progress bar on windows
* Generic configuration tests
* Better unicode handlig in scripts and in file names
* Shorter build outputs
NEW IN WAF 1.7.11
-----------------

3
README
View File

@ -10,7 +10,8 @@ For the examples: see the folder demos/
HOW TO CREATE THE WAF SCRIPT
----------------------------
Python 2.6, 2.7, 3.0, 3.1 or 3.2 is required to generate the waf script. Execute:
Python 2.6, 2.7, 3.0, 3.1, 3.2, 3.3 or 3.4 is required to generate the waf script. The waf script is then the version that can run on Python 2.4 and 2.5.
Just execute:
$ ./waf-light configure build
Or, if you have several python versions installed:
$ python3 ./waf-light configure build

6
TODO
View File

@ -1,9 +1,7 @@
Waf 1.7.x
Waf 1.8.x
---------
* fix the remaining bugs
* provide more extensions
* Update the docs
Can be useful:

View File

@ -163,7 +163,7 @@ class log_handler(logging.StreamHandler):
else:
stream.write(fs % msg)
except UnicodeError:
stream.write(fs % msg.encode("UTF-8"))
stream.write((fs % msg).encode("UTF-8"))
else:
logging.StreamHandler.emit(self, record)