Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

String#concat should preserve encoding #756

Closed
carllerche opened this Issue · 0 comments

2 participants

@carllerche
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 atambo closed this in c314f26
@atambo atambo was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.