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

Inconsistency dumping integer with YAML #4626

Closed
Tonkpils opened this issue May 25, 2017 · 2 comments
Closed

Inconsistency dumping integer with YAML #4626

Tonkpils opened this issue May 25, 2017 · 2 comments

Comments

@Tonkpils
Copy link

Environment

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc)
    jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [darwin-x86_64]
  • Operating system and platform (e.g. uname -a)
    Darwin Leonardos-MacBook-Pro-3.local 16.7.0 Darwin Kernel Version 16.7.0: Tue May 9 11:48:28 PDT 2017; root:xnu-3789.70.9~16/RELEASE_X86_64 x86_64

Expected Behavior

2.4.1 :001 > require 'yaml'
 => true
2.4.1 :002 > YAML.dump(30)
 => "--- 30\n...\n"

Actual Behavior

jruby-9.1.7.0 :002 > require 'yaml'
 => true
jruby-9.1.7.0 :003 > YAML.dump(30)
 => "--- 30\n"
@headius
Copy link
Member

headius commented May 28, 2017

Does this affect you in some way? We have found these minor differences are usually due to the downstream YAML library we use, but they don't affect round-tripping. MRI loads our output correctly, and we load theirs correctly.

@Tonkpils
Copy link
Author

Yeah, I was actually debugging a library that uses msgpack which managed to load the output of the jruby version yank output but raised an exception on the MRI one because of the extra characters.

I ended up releasing a new version of the library that yanked YAML support since it was for backwards compatibility anyway but I just thought I would report it.

@enebo enebo added this to the Invalid or Duplicate milestone Dec 2, 2021
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

No branches or pull requests

3 participants