Closed GoogleCodeExporter closed 9 years ago
Evgeny, sorry for the late feedback, would you please share the pofile that
generates the error when you try to
generate the zip file?
Original comment by mbonetti
on 5 Jun 2010 at 11:24
Hello,
I have this problem too. I tracked it to a bug in polib, which I raised here:
http://bitbucket.org/izi/polib/issue/6/__str__-methods-are-returning-unicode-ins
tead-of
Rick S
Original comment by alass...@gmail.com
on 15 Jun 2010 at 12:01
Before polib is updated, this should fix it on Rosetta's side, and should also
work with David's proposed changes in polib.
--- views.py.old 2010-06-14 15:16:07.000000000 +0100
+++ views.py 2010-06-15 15:50:17.000000000 +0100
@@ -211,7 +211,7 @@
mo_fn = str(po_fn.replace('.po','.mo')) # not so smart, huh
zipdata = StringIO()
zipf = zipfile.ZipFile(zipdata, mode="w")
- zipf.writestr(po_fn, str(rosetta_i18n_pofile))
+ zipf.writestr(po_fn, unicode(rosetta_i18n_pofile).encode("utf8"))
zipf.writestr(mo_fn, rosetta_i18n_pofile.to_binary())
zipf.close()
zipdata.seek(0)
Original comment by alass...@gmail.com
on 15 Jun 2010 at 2:56
Thank you, Rick.
This is fixed as of r96.
Original comment by mbonetti
on 15 Jun 2010 at 3:12
Original issue reported on code.google.com by
evgeny.f...@gmail.com
on 6 May 2010 at 8:16