From: John R. <jr...@ce...> - 2012-07-27 17:20:15
|
On Jul 27, 2012, at 6:58 AM, Benny Malengier <ben...@gm...> wrote: > Ok, I used the reload(sys) hack for now: > http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/src/gramps.py?r1=20057&r2=20103 > > John, you say this is ugly, but are there disadvantages somewhere? > It is really annoying that with GTK3 we everywhere have conversions errors. I read that pango/cairo change the encoding in GTK2, so doing the hack gives us behaviour of before. > > We cannot set a usersite module on installation of gramps as far as I can see. Benny, I don't think that I commented on this at all. If it works it's OK, I guess, (remember, I'm a mostly C/C++ programmer without any deep Python knowledge) but a quick search turns up several discussion threads where it's derided as a bad idea. Does setting $PYTHONIOENCODING=utf8 fix the conversion errors? If so, we can set it in the initial shell script along with $GRAMPSHOME and avoid the hack. Regards, John Ralls |