Project

General

Profile

Actions

Bug #15655

closed

Unable to handle Russian dirname on Windows

Added by ashmaroli (Ashwin Maroli) about 5 years ago. Updated almost 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.5p335 (2018-10-18 revision 65137) [x64-mingw32]
[ruby-core:91772]

Description

I'm unable to work in a directory with a Russian name.
Running 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:/???????"

Related issues 1 (1 open0 closed)

Related to Ruby master - Bug #15993: 'require' doesn't work if there are Cyrillic chars in the path to Ruby dirOpenActions
Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 3 years ago

  • Related to Bug #15993: 'require' doesn't work if there are Cyrillic chars in the path to Ruby dir added

Updated by jeremyevans0 (Jeremy Evans) almost 3 years 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)
Actions

Also available in: Atom PDF

Like0
Like0Like0