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

String#concat should preserve encoding #756

Closed
carllerche opened this Issue May 23, 2013 · 0 comments

Comments

Projects
None yet
2 participants
@carllerche
Copy link

carllerche commented May 23, 2013

irb(main):008:0> bin = "\0\1".force_encoding('BINARY')
=> "\x00\x01"
irb(main):009:0> bin << "ZOMG"
=> "\u0000\u0001ZOMG"
irb(main):010:0> bin.encoding
=> #<Encoding:UTF-8>
irb(main):011:0> JRUBY_VERSION
=> "1.7.3"

bin.encoding should not be UTF-8 after this.

atambo added a commit that referenced this issue Jun 22, 2013

@atambo atambo closed this in c314f26 Jun 22, 2013

@ghost ghost assigned atambo Jun 22, 2013

atambo added a commit that referenced this issue Jun 22, 2013

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.