diff options
author | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:36:43 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:36:43 +0000 |
commit | e37968aadd8c14d15d49b90754a69126bdf674e7 (patch) | |
tree | 2f7e7260d333a36554fd33bf8221f475a98b1e2e /src/os/windows/win32.h | |
parent | fdc436b531a36264d6f2ad8d4ae10170a8c281a8 (diff) | |
download | openttd-e37968aadd8c14d15d49b90754a69126bdf674e7.tar.xz |
(svn r25673) -Fix: [Win32] Use the right code page for converting ANSI strings into UTF-8 for non-Unicode builds. And don't crap out on DBCS code pages either.
Diffstat (limited to 'src/os/windows/win32.h')
-rw-r--r-- | src/os/windows/win32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/windows/win32.h b/src/os/windows/win32.h index 941d3ea84..d0eb371aa 100644 --- a/src/os/windows/win32.h +++ b/src/os/windows/win32.h @@ -18,8 +18,8 @@ bool MyShowCursor(bool show, bool toggle = false); typedef void (*Function)(int); bool LoadLibraryList(Function proc[], const char *dll); -char *convert_from_fs(const wchar_t *name, char *utf8_buf, size_t buflen); -wchar_t *convert_to_fs(const char *name, wchar_t *utf16_buf, size_t buflen); +char *convert_from_fs(const TCHAR *name, char *utf8_buf, size_t buflen); +TCHAR *convert_to_fs(const char *name, TCHAR *utf16_buf, size_t buflen); /* Function shortcuts for UTF-8 <> UNICODE conversion. When unicode is not * defined these macros return the string passed to them, with UNICODE |