Mercurial > hg > openttd
comparison src/os/windows/win32.h @ 20699:d198fbc52efc draft
-Fix: [Win32] The console code page for non-Unicode builds is not the normal ANSI code page and definitely not UTF-8 either.
author | Michael Lutz <michi@icosahedron.de> |
---|---|
date | Thu, 28 Mar 2013 02:41:43 +0100 |
parents | cbef5ef83eb0 |
children | b5f6045d6f28 |
comparison
equal
deleted
inserted
replaced
20698:cbef5ef83eb0 | 20699:d198fbc52efc |
---|---|
17 | 17 |
18 typedef void (*Function)(int); | 18 typedef void (*Function)(int); |
19 bool LoadLibraryList(Function proc[], const char *dll); | 19 bool LoadLibraryList(Function proc[], const char *dll); |
20 | 20 |
21 char *convert_from_fs(const TCHAR *name, char *utf8_buf, size_t buflen); | 21 char *convert_from_fs(const TCHAR *name, char *utf8_buf, size_t buflen); |
22 TCHAR *convert_to_fs(const char *name, TCHAR *utf16_buf, size_t buflen); | 22 TCHAR *convert_to_fs(const char *name, TCHAR *utf16_buf, size_t buflen, bool console_cp = false); |
23 | 23 |
24 /* Function shortcuts for UTF-8 <> UNICODE conversion. When unicode is not | 24 /* Function shortcuts for UTF-8 <> UNICODE conversion. When unicode is not |
25 * defined these macros return the string passed to them, with UNICODE | 25 * defined these macros return the string passed to them, with UNICODE |
26 * they return a pointer to the converted string. The only difference between | 26 * they return a pointer to the converted string. The only difference between |
27 * XX_TO_YY and XX_TO_YY_BUFFER is that with the buffer variant you can | 27 * XX_TO_YY and XX_TO_YY_BUFFER is that with the buffer variant you can |