On 04/09/2016 11:36 AM, Uwe Stöhr wrote: > Am 07.04.2016 um 23:37 schrieb Richard Heck: > >> Then maybe the solution is to disable the writing of native line >> endings. Apparently, we can do this by opening the output files in >> binary mode. The attached patch does this. Can someone test? > > This doesn't compile: > > Traceback (most recent call last): > File "D:/LyXGit/Master/po/lyx_pot.py", line 663, in <module> > qt4_l10n(input_files, output, base) > File "D:/LyXGit/Master/po/lyx_pot.py", line 436, in qt4_l10n > output = io.open(output, 'wb', encoding='utf_8') > ValueError: binary mode doesn't take an encoding argument > > Looking at https://docs.python.org/3/library/functions.html#open > I see that one needs to use 'w+b' and omit the encoding. > > Attached is the patch that would compile here. This patch includes > it.po (Latin chars) and uk.po (Cyrillic chars) as test of the result I > get with this change. > > Here this looks good.
No, it's bad. I'm faikrly sure there should be almost no difference between the files if it is working correctly. Something has happend involving this sort of thing: -#: src/frontends/qt4/ui/WrapUi.ui:173 src/frontends/qt4/GuiParagraph.cpp:163 +#: src/frontends/qt4/ui/AboutUi.ui:159 src/frontends/qt4/ui/CompareUi.ui:163 also. Richard