Monday, October 22, 2007

failed to build qt-3.3.8-r4 on loongson

Haven't solve it yet.
I have already tried to add -mxgot to CFLAGS and CXXFLAGS. But it didn't work for me.
Some useful link:

Saturday, October 06, 2007

Fixed a bug in xml2po

The condition to trigger the bug is that opening tag or the content of the tag contains non-ascii chars. e.g:
<title>Quotes are for weak people, strong people have their own opinions
- Dawid Węgliński (cla)</title>
<figure link="/images/gwn/20070917_cla.jpg"
short="cla" caption="Dawid Węgliński, aka cla"/>

The symptom is:
Stack trace:
Traceback (most recent call last):
File "", line 856, in ?
File "", line 589, in doSerialize
outtxt += doSerialize(child)
File "", line 583, in doSerialize
(starttag, content, endtag, translation) = processElementTag(node, repl, 1)
File "", line 525, in processElementTag
translation = translation.replace('' % (i), replacement)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
635: ordinal not in range(128)