Skip to content

Fix string concatenation with a number as per rubyspec behaviour.#727

Merged
headius merged 1 commit intojruby:masterfrom
tychobrailleur:string_concat
May 21, 2013
Merged

Fix string concatenation with a number as per rubyspec behaviour.#727
headius merged 1 commit intojruby:masterfrom
tychobrailleur:string_concat

Conversation

@tychobrailleur
Copy link
Contributor

Following tychobrailleur/jcodings@8536b4f, the incorrect behaviour of String#concat with
a number was made obvious by throwing an EncodingException. MRI changes
the encoding of the String if the concatenated codepoint is within
ASCII-8BIT range, and throws a RangeError otherwise.

Following tychobrailleur/jcodings@8536b4f, the incorrect behaviour of String#concat with
a number was made obvious by throwing an EncodingException.  MRI changes
the encoding of the String if the concatenated codepoint is within
ASCII-8BIT range, and throws a RangeError otherwise.
headius added a commit that referenced this pull request May 21, 2013
Fix string concatenation with a number as per rubyspec behaviour.
@headius headius merged commit ccd06ac into jruby:master May 21, 2013
@headius
Copy link
Member

headius commented Jun 6, 2013

Please try to remember to set a milestone for closed issues :-)

@tychobrailleur
Copy link
Contributor Author

@headius Oh, did I close that issue?

@tychobrailleur
Copy link
Contributor Author

@headius Never mind, gotcha! (=

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