Skip to content
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

Make sorting locale-aware on Android #15125

Open
pkerling opened this issue Dec 24, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@pkerling
Copy link
Member

commented Dec 24, 2018

Roadmap or todo suggestion

Detailed Description

Android libc does not support locales, which we need for locale-aware sorting (e.g. sorting "Ä" after "A" and not at the end of the list in German). So we need another, proper solution. Options would be to use the JNI to call the locale-aware Java functions or use libICU, which has locale-aware comparison abilities. The latter option seems most promising. There is a wrapper library available unofficially (android-ndk/ndk#548) that allows to use the C API of the system-bundled libICU, so we would not even have to build and ship it (data files are quite large). We would have to integrate the wrapper and headers though.

Context

Required to get list sorting on Android on-par with all other platforms

Possible Implementation

See #12268 (comment) - that should basically be all

Additional context, screenshots or links

Here are some relevant links or screenshots

Prior attempt in v18: #12268

Issues that appeared: #14952, #15026

Note: Team Kodi will consider this item however we will not make any promises if it will be included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.