To debug this I first did:
jruby -S gem update --system
Then I ran:
jruby -S gem install cucumber --backtrace
If you edit your
C:/jruby-1.3.1/lib/ruby/site_ruby/1.8/rubygems/installer.rb file with
some additional debug info around line 541 with:
begin
File.open(path, "wb") do |out|
out.write file_data
end
rescue IOError => e
e.message << "\nCouldn't write to " + path
raise e
end
Then you'll see a backtrace like this:
ERROR: While executing gem ... (IOError)
The filename, directory name, or volume label syntax is incorrect
Couldn't write to
C:/jruby-1.3.1/lib/ruby/gems/1.8/gems/cucumber-0.4.0/examples/i18n/tr/features/bo?lme.feature
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/installer.rb:541:in
`open'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/installer.rb:541:in
`extract_files'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/installer.rb:521:in
`each'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/installer.rb:521:in
`extract_files'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/installer.rb:217:in
`install'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:252:in
`install'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:222:in
`each'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:222:in
`install'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:118:in
`execute'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in
`each'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in
`execute'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/command.rb:257:in
`invoke'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in
`run'
C:/jruby-1.3.1/bin/../lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in
`run'
C:/jruby-1.3.1/bin/../bin/gem:24
Your operating system doesn't know how to write a file with latin
characters in it. (The name of the file is bölme.feature, which is
division.feature in Turkish).
Does anyone know how to train this operating system to write such
files, or do we have to rename all non-ascii files (currently only one
afaik) to accomodate for it?
Aslak