Unable to handle Russian dirname on Windows
I'm unable to work in a directory with a Russian name.
bundle exec ... returns an error from Bundler saying that it couldn't locate the Gemfile (which is present)
# print current directory > echo %CD% => D:\Евгений # print contents at root > ls => 404.html Gemfile _config.yml _posts about.markdown index.markdown # List dependencies via Bundler > bundle show => Could not locate Gemfile or .bundle/ directory # Debug in IRB > irb irb(main):001:0> Dir.pwd => "D:/???????"
Updated by jeremyevans0 (Jeremy Evans) about 2 months ago
- Status changed from Open to Closed
This appears to be fixed starting in Ruby 2.5 (also works in 2.6, 2.7, and 3.0):
C:\>C:\Ruby24-x64\bin\gem list bundler *** LOCAL GEMS *** bundler (2.2.20) C:\>C:\Ruby25-x64\bin\gem list bundler *** LOCAL GEMS *** bundler (2.2.20) D:\Евгений>C:\Ruby24-x64\bin\bundle show Could not locate Gemfile or .bundle/ directory D:\Евгений>C:\Ruby25-x64\bin\bundle show Gems included by the bundle: * bundler (2.2.20)