-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning handler crashes under py2 #25
Comments
Hello, Since msgstr is already an unicode, there is no need to encode it or do anything with it before adding it to the formatted unicode string. If you want to pull it, I have corrected it in git://git.ortolo.eu/pkg-itstool.git branch contrib/fix_decode_crash. You can apply it with: git pull git://git.ortolo.eu/pkg-itstool.git contrib/fix_decode_crash Or, if you prefer to use HTTP: git pull https://git.ortolo.eu/git/pkg-itstool.git contrib/fix_decode_crash Regards, -- |
Hello @ortolot,
|
@belegdol, your issue is not the same. This is about a Python encoding error, but yours is about a segfault. Knowing that does not fix it of course, but there should be another bug for that. |
Reported by: pkg-fallout Obtained from: Fedora git-svn-id: svn+ssh://svn.freebsd.org/ports/head@495018 35697150-7ecd-e111-bb59-0022644237b5
Reported by: pkg-fallout Obtained from: Fedora
Reported by: pkg-fallout Obtained from: Fedora git-svn-id: svn+ssh://svn.freebsd.org/ports/head@495018 35697150-7ecd-e111-bb59-0022644237b5
**Changelog:** - Make DocBook keyword element within text - Apply ITS files passed with -i in --join mode - Add patch to fix [handler crashes under python 2](itstool/itstool#25).
Reported by: pkg-fallout Obtained from: Fedora
If there's an invalid translation, and the source string contains non-ascii, and you use python 2, you get an error.
https://gitlab.gnome.org/GNOME/gnome-user-docs/issues/23
Solution might be to replace
encode('utf-8')
withustr
on lines 1062 and 1089.The text was updated successfully, but these errors were encountered: