-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Description
Environment
irb(main):002:0> ENV_JAVA['file.encoding']
=> Cp1250
irb(main):003:0> Encoding.find('filesystem')
=> Windows-1250
irb(main):001:0> Encoding.default_internal
=> nil
irb(main):002:0> Encoding.default_external
=> #Encoding:IBM852
irb(main):009:0> File.expand_path('')').encoding
=> "C:/Users/Pavel Rosick\xF8"
irb(main):010:0> File.expand_path('
=> #Encoding:Windows-1250
C:\jruby-9.1.1.0\bin>gem list bundler
*** LOCAL GEMS ***
bundler (1.12.4)
jruby 9.1.1.0 (2.3.0) 2016-05-19 fe84e89 Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86_64]
Expected Behavior
it works as expected with -J-Dfile.encoding=utf-8
C:\jruby-9.1.1.0\bin\devel>..\jruby -J-Dfile.encoding=utf-8 -S bundle install
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from http://rubygems.org/...
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.............................................................
Installing rake 11.1.2
Installing i18n 0.7.0
Using json 1.8.3
Installing minitest 5.9.0
Installing thread_safe 0.3.5Actual Behavior
ArgumentError and blank lines
C:\jruby-9.1.1.0\bin\devel>..\jruby -S bundle install
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from http://rubygems.org/...
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.............................................................
ArgumentError: string contains null byte
Using json 1.8.3
Using bundler 1.12.4
An error occurred while installing rake (11.1.2), and Bundler cannot continue.
Make sure that `gem install rake -v '11.1.2'` succeeds before bundling.Reactions are currently unavailable