Actions
Bug #12652
closedFor Dir.home encode passed user
Description
Currently Dir.home(user) expects that passed user will be already in appropriate encoding but if it's not it will fail because comparing with different encodings.
This causes TestDir#test_home to fail.
user = ENV['USER']
puts Dir.home(user)
fails with
`home': user Dāvis doesn't exist (ArgumentError)
On Linux it will fail too if passed user is in different encoding than locale.
I've attached a patch which fixes this.
Files
Actions
Like0
Like0Like0