1
0
forked from 0ad/0ad
0ad/source/lib
Ykkrosh e06a7b37d8 Convert debug_printf to take UTF-8 strings instead of wchar_t.
This fixes the problem where passing a non-ASCII string to
debug_printf(L"%hs", s) caused vswprintf_s to fail on Linux (because it
doesn't know what encoding the char* is meant to have). Now debug
messages will remain as UTF-8 until they reach the OS.

Fixes #3021.

This was SVN commit r16332.
2015-02-14 01:45:13 +00:00
..
adts Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
allocators Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
external_libraries glext_funcs: Support glMapBuffer, glMapBufferRange 2015-01-25 16:36:23 +00:00
file Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
pch Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
posix Add support for OpenBSD. Fixes #1463. 2012-06-13 20:43:56 +00:00
res Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
sysdep Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
tests Add basic tests for %s/%hs/%ls in sprintf_s, swprintf_s. 2015-01-22 20:39:53 +00:00
tex Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
alignment.h Update cassert to use C++11 static_assert. 2015-01-24 17:29:19 +00:00
app_hooks.cpp split debug_assert into ENSURE and ASSERT as discussed in a previous meeting. 2011-04-30 13:01:45 +00:00
app_hooks.h refactoring: 2011-03-23 16:14:47 +00:00
base32.cpp Fix use of undefined behaviour (shifting by >= size of left operand) 2010-07-30 21:33:26 +00:00
base32.h Fix #423 (Switch from CppDoc to Doxygen), based on patch from anr. 2010-07-29 15:55:41 +00:00
bits.cpp needed to split lib into separate headers and source files, which requires lots of drudgery to specify paths for each include filename (no longer relying on same-directory lookups) 2010-03-01 14:52:58 +00:00
bits.h Update cassert to use C++11 static_assert. 2015-01-24 17:29:19 +00:00
byte_order.cpp Avoid potential aliasing violation in endian functions 2011-10-25 14:02:50 +00:00
byte_order.h Vague start at hypothetical Android support 2012-01-17 22:05:43 +00:00
code_annotation.h Remove partial emulation of some C++11 features for older compilers. 2015-01-24 20:37:18 +00:00
code_generation.h Catch exceptions by reference (by convention), based on patch from Markus, refs #1852 2013-05-22 22:27:53 +00:00
config2.h Add compile time flag to disable use of miniupnpc. 2013-12-18 16:08:56 +00:00
config.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
debug_stl.cpp Remove some checks for usupported VS versions (<2013). 2015-01-24 20:37:16 +00:00
debug_stl.h post-alpha sync with work. 2011-07-18 09:21:56 +00:00
debug.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
debug.h Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
fnv_hash.cpp license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
fnv_hash.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
frequency_filter.cpp Improves frame rate counter to give smoother results, patch by sbte. Fixes #1016 2013-02-26 21:50:38 +00:00
frequency_filter.h Avoid -Wnon-virtual-dtor warnings 2010-03-31 08:36:46 +00:00
input.cpp Improve correctness of hotkeys at low framerates. 2013-10-30 01:38:32 +00:00
input.h Improve correctness of hotkeys at low framerates. 2013-10-30 01:38:32 +00:00
lib_api.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
lib.cpp ENSURE(0) -> DEBUG_WARN_ERR(ERR::LOGIC) (a bit smaller, and more descriptive) 2011-05-04 12:10:17 +00:00
lib.h Fix compatibility with LLVM libc++ (used on OS X). 2014-05-26 16:48:28 +00:00
module_init.cpp fix self-test and map load on Windows (avoid mixing dir separators). 2011-05-06 18:45:30 +00:00
module_init.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
ogl.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
ogl.h Improve ogl_WarnIfError() to report the file/line where the error was detected 2015-01-19 20:06:16 +00:00
os_path.h Fix handling of non-ASCII paths on Unix 2012-05-11 14:30:15 +00:00
path.cpp refactor status code definitions: allow modules to define an array of them (more convenient+efficient). 2011-05-05 13:03:34 +00:00
path.h Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
pointer_typedefs.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
precompiled.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ps_stl.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
rand.cpp cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
rand.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
regex.cpp license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
regex.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
secure_crt.cpp Make Android %ls/%hs workaround work on secure_crt as well as wsecure_crt. 2015-01-24 00:22:12 +00:00
secure_crt.h Remove some checks for usupported VS versions (<2013). 2015-01-24 20:37:16 +00:00
self_test.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
self_test.h CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00
status.cpp Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
status.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
svn_revision.cpp license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
svn_revision.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
timer.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
timer.h Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
types.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
utf8.cpp refactor status code definitions: allow modules to define an array of them (more convenient+efficient). 2011-05-05 13:03:34 +00:00
utf8.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
wsecure_crt.cpp Misc. unity fixes (missing includes, undefs, and other things that could be considered generic cleanup) 2010-02-18 00:06:50 +00:00