Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
python-datrie
datrie-bigendian.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File datrie-bigendian.patch of Package python-datrie
--- datrie-0.7.1/src/datrie.pyx 2018/03/15 17:07:17 1.1 +++ datrie-0.7.1/src/datrie.pyx 2018/03/15 17:09:19 @@ -1108,8 +1108,10 @@ if length == 0: length = cdatrie.alpha_char_strlen(key)*sizeof(cdatrie.AlphaChar) cdef char* c_str = <char*> key - return c_str[:length].decode('utf_32_le') - + if sys.byteorder == "big": + return c_str[:length].decode('utf_32_be') + else: + return c_str[:length].decode('utf_32_le') def to_ranges(lst): """
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor