String#concat should preserve encoding #756

carllerche opened this Issue May 23, 2013 · 0 comments


None yet

2 participants

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 Jun 22, 2013
@atambo atambo was assigned Jun 22, 2013
@atambo atambo added a commit that referenced this issue Jun 22, 2013
@atambo atambo TestM17N#test_gsub was fixed by #756 caa6fc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment