emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Building Emacs on MS Windows


From: Lars Hansen
Subject: Re: Building Emacs on MS Windows
Date: Sat, 08 Feb 2003 10:39:45 +0100
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130

Jason Rumney wrote:
Lars Hansen <address@hidden> writes:

  
Take a look at my mail labeled "Eshell under Windows" on
bug-gnu-emacs, there is more precise information.
    

Please try the following function in cwd.exe in addition to getcwd()

    char startup_dir[MAXPATHLEN];
    GetCurrentDirectory (MAXPATHLEN, startup_dir)

This is the Windows API function Emacs uses to get the current
directory at startup.  Theoretically, it should give the same result
as getcwd (I would expect the latter to be a simple wrapper in most
runtime libraries), but let's make sure.
GetCurrentDirectory returns the same at getcwd:

d:/tmp $ mingw32-make.exe
./cwd.exe
getcwd: 'D:\tmp', GetCurrentDirectory: 'D:\tmp'
mingw32-make.exe -C d
mingw32-make.exe[1]: Entering directory `D:/tmp/d'
../cwd.exe
getcwd: 'D:\tmp\d', GetCurrentDirectory: 'D:\tmp\d'
/emacs/bin/emacs.exe --no-init-file --no-site-file --multibyte -batch -l d:/tmp/test.el -f test
default-directory: d:/tmp/
../cwd.exe
getcwd: 'D:\tmp\d', GetCurrentDirectory: 'D:\tmp\d'
mingw32-make.exe[1]: Leaving directory `D:/tmp/d'
./cwd.exe
getcwd: 'D:\tmp', GetCurrentDirectory: 'D:\tmp'
d:/tmp $


reply via email to

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