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

Incorrect rstrip handling of multibyte characters #2706

Merged
merged 1 commit into from
May 22, 2018
Merged

Incorrect rstrip handling of multibyte characters #2706

merged 1 commit into from
May 22, 2018

Conversation

pzel
Copy link
Contributor

@pzel pzel commented May 21, 2018

This PR addresses #2705, namely the over-aggressive truncation of trailing characters in String.rstrip().

@SeanTAllen SeanTAllen self-requested a review May 21, 2018 23:42
@SeanTAllen
Copy link
Member

Excellent first time contribution.

@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label May 21, 2018
@SeanTAllen SeanTAllen changed the title Fix truncate() parameter in String.rstrip() Incorrect rstrip handling of multibyte characters May 21, 2018
@SeanTAllen
Copy link
Member

@pzel i changed the PR title so that when it is added to the CHANGELOG, it will be a more meaningful entry.

@pzel
Copy link
Contributor Author

pzel commented May 21, 2018

Thank you @SeanTAllen. So, for future reference: a bugfix commit message should describe the buggy behavior as it was before it was fixed?

@SeanTAllen
Copy link
Member

@pzel if you don't include a manual changelog entry, yes.

@SeanTAllen SeanTAllen merged commit 951c04f into ponylang:master May 22, 2018
ponylang-main added a commit that referenced this pull request May 22, 2018
@pzel pzel deleted the string-strip-utf branch May 24, 2018 19:15
dipinhora pushed a commit to dipinhora/ponyc that referenced this pull request Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants