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

Use String#force_encoding instead of String#encode #1477

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Feb 20, 2017

Because:

  • String#encode will try to encode self, it will raise
    Encoding::UndefinedConversionError.
  • fluent.conf will read as ASCII-8BIT

See also fluent/fluent-plugin-grok-parser#27

Because:

  * `String#encode` will try to encode self, it will raise
    `Encoding::UndefinedConversionError`.
  * fluent.conf will read as ASCII-8BIT

See also fluent/fluent-plugin-grok-parser#27
@repeatedly
Copy link
Member

LGTM

@repeatedly repeatedly merged commit 0e60445 into fluent:master Mar 2, 2017
@repeatedly
Copy link
Member

Merged

repeatedly added a commit that referenced this pull request Mar 3, 2017
Use `String#force_encoding` instead of `String#encode`
@okkez okkez deleted the fix-undefined-conversion-error branch March 14, 2017 00:22
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.

2 participants