Please backport r39697 as it fixes a bug reported in #8034
Updated by luislavena (Luis Lavena) almost 7 years ago
As pointed out by nobu, the original revision might not be enough.
The final list of revisions required are:
To simply the process I have attached a patch with the revisions combined.
Updated by usa (Usaku NAKAMURA) almost 7 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r39982.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 39697,39701,39716,39740,39751: [Backport #8070]
* win32/file.c (rb_file_expand_path_internal): Expand home directory when used as second parameter (dir_string). [ruby-core:53168] [Bug #8034] * test/ruby/test_file_exhaustive.rb: add test to verify. * win32/file.c (get_user_from_path): add internal function that retrieves username from supplied path (refactored). * win32/file.c (rb_file_expand_path_internal): refactor expansion of user home to use get_user_from_path and cover dir_string corner cases. [ruby-core:53168] [Bug #8034]