]> git.donarmstrong.com Git - lilypond.git/commit
Use Python Unicode encoding for gettexted strings
authorJohn Mandereau <john.mandereau@gmail.com>
Wed, 30 Jan 2008 11:07:50 +0000 (12:07 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Wed, 30 Jan 2008 11:07:50 +0000 (12:07 +0100)
commit2ad303a6af235099f6334c1549c587c51e8fb216
treed32a3e4504d4c6b2d1d563a990bfea7f14c4a6d9
parentb9f5bad081420ca6a41df5c5655e543750ee9674
Use Python Unicode encoding for gettexted strings

Python 2.5 strings encoding handling seems not always consistent
between various modules, so we must use Python Unicode strings and
thus reencode strings when writing to stderr/stdout.  This commit
applies changes proposed on lilypond-devel a while ago in thread
"Gettexted messages encoding with Python 2.5".

Even if GUB still uses Python 2.4, LilyPond packages on some distros
(e.g. Fedora) already use 2.5, so it's important to fix this.  I think
these changes are also compatible with 2.4, but anyway I must check
GUB binary when it's out.

By the way, further localization work is needed: localize musicxml2ly
strings, and fix some nitpicks.
python/lilylib.py
scripts/convert-ly.py
scripts/lilypond-book.py
scripts/midi2ly.py
scripts/musicxml2ly.py