1
1
forked from 0ad/0ad
0ad/source/ps/tests
Ykkrosh dcf5a2667f CLogger: Use cppformat instead of sys_vswprintf.
sys_vswprintf relies on platform-specific printf implementations, which
vary widely between platforms (in handling of truncation, return values,
use of %s/%S/%hs/%ls for mixing char and wchar_t strings, etc) and are
therefore a pain.

Use cppformat's fmt::sprintf instead, which has very similar syntax to
sprintf but is more C++ish and is portable.

Also, wchar_t is stupid, so use char* strings (which are expected to be
UTF-8) in CLogger. This creates a bit of a pain with changing all
callers to convert to char* strings, but that's their fault for not
using UTF-8 already.

Refs #3011.

This was SVN commit r16182.
2015-01-22 20:30:05 +00:00
..
stub_impl_hack.h Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
test_CColor.h Replace usage of CParser for CColor. 2014-06-04 00:58:05 +00:00
test_CLogger.h CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00
test_cppformat.h cppformat: Add basic tests for the functionality we use. 2015-01-22 20:28:57 +00:00
test_CStr.h Fix CStr parsing to be independent of locale, so that it doesn't break when GTK+ changes the locale. 2010-09-30 23:17:41 +00:00
test_test.h Add GPL header 2009-04-18 17:00:33 +00:00