datrie icon indicating copy to clipboard operation
datrie copied to clipboard

BUGFIX: Decode string based on byteorder of system

Open Aniket-Pradhan opened this issue 5 years ago • 3 comments

Fixes #38

Big-endian machines are unable to decode the UTF-32 encoded strings. The default decoding is for little-endian machines. Therefore, added a simple if condition to identify the type of machine before decoding the string.

Aniket-Pradhan avatar Nov 04 '20 08:11 Aniket-Pradhan

patch already validated in openSUSE since a while: https://build.opensuse.org/package/view_file/openSUSE:Factory:PowerPC/python-datrie/datrie-bigendian.patch?expand=1

michelmno avatar Nov 04 '20 10:11 michelmno

Yep, we'll probably use a similar patch for Fedora until the PR is accepted.

Aniket-Pradhan avatar Nov 04 '20 11:11 Aniket-Pradhan

I just added this to the Debian package, thanks all!

mr-c avatar Nov 04 '20 11:11 mr-c