We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
jruby 9.0.0.0.pre1 (2.2.0p0) 2015-01-20 d537cab Java HotSpot(TM) Client VM 24.51-b03 on 1.7.0_51-b13 +jit [Windows 7-x86]
MRI allows Dir.foreach to accept an encoding, but it seems JRuby does not:
enc = Encoding::UTF_16LE p Dir.foreach(Dir.pwd) p Dir.foreach(Dir.pwd, encoding: enc) # ArgumentError with JRuby
However, see https://bugs.ruby-lang.org/issues/10815 as well.
The text was updated successfully, but these errors were encountered:
Ok, it seems I didn't understand the function prototype, so I've updated the example.
Sorry, something went wrong.
Easy one to add...marking as beginner.
26ed114
No branches or pull requests
jruby 9.0.0.0.pre1 (2.2.0p0) 2015-01-20 d537cab Java HotSpot(TM) Client VM 24.51-b03 on 1.7.0_51-b13 +jit [Windows 7-x86]
MRI allows Dir.foreach to accept an encoding, but it seems JRuby does not:
However, see https://bugs.ruby-lang.org/issues/10815 as well.The text was updated successfully, but these errors were encountered: