From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2026-05-11T03:19:27+00:00 Subject: [ruby-core:125452] [Ruby Bug#19986] Win32: `HOME` is set to just `HOMEDRIVE` if `HOMEPATH` is unset Issue #19986 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Closed Fix at https://github.com/ruby/ruby/pull/7034, https://github.com/ruby/ruby/pull/7034. ---------------------------------------- Bug #19986: Win32: `HOME` is set to just `HOMEDRIVE` if `HOMEPATH` is unset https://bugs.ruby-lang.org/issues/19986#change-117256 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED ---------------------------------------- ``` $ env -u HOME -u USERPROFILE -u HOMEPATH HOMEDRIVE=no/such/home ./miniruby.exe -e 'p ENV["HOME"], Dir.home' "no/such/home" "no/such/home" ``` `HOMEDRIVE` should be ignored without `HOMEPATH`, and `HOME` should fallback to `CSIDL_PROFILE`. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/