diff options
author | 2015-11-18 16:58:11 +0800 | |
---|---|---|
committer | 2015-11-28 14:34:27 +0800 | |
commit | 789657456a76ec6a08de17db2a4e0d33394c96b4 (patch) | |
tree | 2d023237d8b6301037f9f4b36b8fd1f05550b38e /src | |
parent | e5bfdcd9a47ed6e933f13944ae389c2add81fdf3 (diff) |
env.cpp: warn when wgetcwd() fails
Closes #2321
Diffstat (limited to 'src')
-rw-r--r-- | src/env.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.cpp b/src/env.cpp index 3c73fb07..3d7023db 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -382,6 +382,7 @@ int env_set_pwd() wchar_t *res = wgetcwd(dir_path, 4096); if (!res) { + debug(0, _(L"Could not determine current working directory. Is your locale set correctly?")); return 0; } env_set(L"PWD", dir_path, ENV_EXPORT | ENV_GLOBAL); |