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

fix UTF-8 handling in ByStatement.findEnd #43

Merged
merged 2 commits into from
Apr 15, 2018

Conversation

aG0aep6G
Copy link
Contributor

tail.countUntil(';') counted code points, but pos is used as a number of
code units.

Prompted by https://forum.dlang.org/post/mailman.2321.1523383471.3374.digitalmars-d@puremagic.com

`tail.countUntil(';')` counted code points, but pos is used as a number of
code units.
source/tests.d Outdated
unittest // UTF-8
{
auto db = Database(":memory:");
db.run("SELECT '\u2019\u2019';");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that SELECT return value should be tested too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that SELECT return value should be tested too.

Sure, why not. Added a commit.

@biozic biozic merged commit d5374ba into dlang-community:master Apr 15, 2018
@biozic
Copy link
Collaborator

biozic commented Apr 15, 2018

Thanks !

@aG0aep6G aG0aep6G deleted the findEnd branch April 15, 2018 10:30
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