octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44694] prefdir returns a blank result on Wind


From: Michael C. Grant
Subject: [Octave-bug-tracker] [bug #44694] prefdir returns a blank result on Windows 8
Date: Wed, 01 Apr 2015 21:22:29 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.4.10 (KHTML, like Gecko) Version/8.0.4 Safari/600.4.10

URL:
  <http://savannah.gnu.org/bugs/?44694>

                 Summary: prefdir returns a blank result on Windows 8
                 Project: GNU Octave
            Submitted by: mcgrant
            Submitted on: Wed 01 Apr 2015 09:22:28 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0-rc2
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

prefdir is defined rather simply: it returns the value of HOME environment
variable.


function folder = prefdir ()
  folder = getenv ("HOME");
endfunction


This is  just fine on Unix-based systems. However, on my rather vanilla
installation of Windows 8.1, the HOME variable is not defined, so this
function returns the empty string.

The closest I can come to for HOME is HOMEPATH. LOCALAPPDATA may be a better
environment variable to use for prefdir anyway, although in that case you
would want to make sure that the directory is created when requested. 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44694>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]