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

Set encoding for character literal #4982

Merged
merged 1 commit into from Jan 16, 2018

Conversation

Projects
None yet
2 participants
@yui-knk
Contributor

yui-knk commented Jan 16, 2018

MRI sets source encoding to character literal.
This commit will fix #test_char.

p "a".encoding
p ?a.encoding
p ?\M-a.encoding
$ ruby -v /tmp/enc.rb
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14]
#<Encoding:UTF-8>
#<Encoding:UTF-8>
#<Encoding:UTF-8>
Set encoding for character literal
MRI sets source encoding to character literal.
This commit will fix `#test_char`.

```ruby
p "a".encoding
p ?a.encoding
p ?\M-a.encoding
```

```shell
$ ruby -v /tmp/enc.rb
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14]
#<Encoding:UTF-8>
#<Encoding:UTF-8>
#<Encoding:UTF-8>
```

@enebo enebo added this to the JRuby 9.1.16.0 milestone Jan 16, 2018

@enebo enebo added the parser label Jan 16, 2018

@enebo enebo merged commit c10386e into jruby:jruby-9.1 Jan 16, 2018

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details

@yui-knk yui-knk deleted the yui-knk:jruby-9.1_fix_test_char branch Jan 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment