Cannot start ruby interpreter, dash encoding error

I tried a fresh new install of Ruby 2.7.0 and 2.5.8 and both versions failed to start the interpreter, ending with this error:


(default installation under default folder with default checkbox, no customization)

I tried to search this error which seems to be some invalid conversion of a U+2013 symbol (en “dash” symbol) character from one encoding to another, but there is not even any program that I wrote, it is all default ruby files. I suspect this is some file open/searching and it probably finds some path with the weird dash and then the interpreter fails to start. Unfortunately I am not aware of any weird dash in my system, anyone has idea how to fix this??

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs