Use UTF-8 everywhere possible and only use wchar_t where required.

* This means that all APIs pass byte string types. ALL strings everywhere
  in the entire codebase must be assumed to be and treated as UTF-8 content
  not ASCII.
* Gets rid of all the horrible %hs specifiers that caused warnings on
  linux! Hooray.
* We convert to wide strings, or use wide characters, only when necessary
  to use the Win32 API. Some windows specific code will stay in wide chars
  just for convenience.
* Files are already serialised as UTF-8 strings for linux/windows binary
  compatibility, so this change doesn't break backwards compatibility.
This commit is contained in:
baldurk
2014-11-23 14:45:16 +00:00
parent 6b9287470d
commit 2484bc8bc7
95 changed files with 1254 additions and 1224 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
struct CaptureOptions;
typedef void (__cdecl *pRENDERDOC_SetCaptureOptions)(const CaptureOptions *opts);
typedef void (__cdecl *pRENDERDOC_SetLogFile)(const wchar_t *logfile);
typedef void (__cdecl *pRENDERDOC_SetLogFile)(const char *logfile);
#if defined(RELEASE)
#define LOGPRINT(txt) do { } while (0)