diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 20:50:46 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 20:50:46 +0000 |
commit | ee62a6ec511a7699e276aae63927a3fa1ce6df2e (patch) | |
tree | dd8348e4dd4c5e79b3fad4edb41b45d13b1a06e5 /lib | |
parent | 1893383ff18bf5af2443c467b3811c8544653f1e (diff) |
Add more debugging checks and messages for location setup error
reported by Pete Jalajas
(http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003668.html)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/win32/emu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp index 0077166f..d69d8197 100644 --- a/lib/win32/emu.cpp +++ b/lib/win32/emu.cpp @@ -390,6 +390,10 @@ bool ConvertEncoding(const std::string& rSource, int sourceCodePage, WCHAR* pWide = ConvertToWideString(rSource.c_str(), sourceCodePage); if (pWide == NULL) { + ::syslog(LOG_ERR, "Failed to convert string '%s' from " + "current code page %d to wide string: %s", + rSource.c_str(), sourceCodePage, + GetErrorMessage(GetLastError()).c_str()); return false; } @@ -398,6 +402,7 @@ bool ConvertEncoding(const std::string& rSource, int sourceCodePage, if (!pConsole) { + // Error should have been logged by ConvertFromWideString return false; } |