Skip to content

Searchcommands: add full support for unicode #222

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

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

shakeelmohamed
Copy link
Contributor

We're now using StringIO instead of cStringIO (which doesn't have unicode support). For Python 2 there may be a performance tradeoff, but that's better than the search command exiting with a unicode exception!

Partially addresses #198, mainly the issue raised by @Cavalierski

Shakeel Mohamed added 2 commits September 27, 2018 13:40
Python's cstringio doesn't support unicode characters,
when encountering them Exceptions are raised. We've
decided to use stringio instead, trading potential
performance improvements for full unicode support.

In Python 2, this may lead to a slight performance hit
since we're no longer explicitly using the native version.

However, in Python 3 stringio will automatically use the
native version if available and there should be no noticeable
performance changes.
@shakeelmohamed shakeelmohamed merged commit c6b7457 into develop Sep 27, 2018
@shakeelmohamed shakeelmohamed deleted the bugfix/search-commands-unicode branch September 27, 2018 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants