diff options
-rw-r--r-- | butl/path.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/butl/path.cxx b/butl/path.cxx index d7a0da9..03d4b1f 100644 --- a/butl/path.cxx +++ b/butl/path.cxx @@ -66,6 +66,7 @@ namespace butl char cwd[_MAX_PATH]; if (_getcwd (cwd, _MAX_PATH) == 0) throw system_error (errno, system_category ()); + cwd[0] = toupper (cwd[0]); // Canonicalize. #else char cwd[PATH_MAX]; if (getcwd (cwd, PATH_MAX) == 0) @@ -228,6 +229,7 @@ namespace butl wchar_t wcwd[_MAX_PATH]; if (_wgetcwd (wcwd, _MAX_PATH) == 0) throw system_error (errno, system_category ()); + wcwd[0] = toupper (wcwd[0]); // Canonicalize. #else char cwd[PATH_MAX]; if (getcwd (cwd, PATH_MAX) == 0) |