From: "Berger, Daniel" Date: 2007-10-02T04:59:11+09:00 Subject: Re: Dir.chdir patch for MS Windows > -----Original Message----- > From: Luis Lavena [mailto:luislavena@gmail.com] > Sent: Monday, October 01, 2007 1:55 PM > To: ruby-core@ruby-lang.org > Subject: Re: Dir.chdir patch for MS Windows > > > On 10/1/07, Berger, Daniel wrote: > > Hi, > > > > Dir.chdir without any arguments will usually raise an error on MS > > Windows because ENV['HOME'] is not typically set. This > patch resorts > > to USERPROFILE on Windows instead of LOGDIR. It also > updates the rdoc. > > > > Daniel, that will fail on a Corporative environment. I'm in a corporate environment. Works here. > USERPROFILE points to "Document and Settings\USERNAME" > folder, and under corporative environments, the HOME is a > combination of HOMEDRIVE > + HOMEPATH instead. If HOME is set then USERPROFILE won't be used. Anyway, this is at least a little better than the current behavior. If you have a better patch I'm listening. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.