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: