File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ build_script:
26
26
27
27
set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
28
28
29
- cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DSPDLOG_BUILD_EXAMPLE=ON -DSPDLOG_BUILD_EXAMPLE_HO=ON -DSPDLOG_BUILD_TESTS=ON -DSPDLOG_BUILD_TESTS_HO=OFF
29
+ cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DSPDLOG_WCHAR_SUPPORT=ON - DSPDLOG_BUILD_EXAMPLE=ON -DSPDLOG_BUILD_EXAMPLE_HO=ON -DSPDLOG_BUILD_TESTS=ON -DSPDLOG_BUILD_TESTS_HO=OFF
30
30
31
31
cmake --build . --config %BUILD_TYPE%
32
32
Original file line number Diff line number Diff line change @@ -77,4 +77,22 @@ TEST_CASE("stderr_color_mt", "[stderr]")
77
77
l->error (" Test stderr_color_mt" );
78
78
l->critical (" Test stderr_color_mt" );
79
79
spdlog::drop_all ();
80
- }
80
+ }
81
+
82
+ #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
83
+
84
+ TEST_CASE (" wchar_api" , " [stdout]" )
85
+ {
86
+ auto l = spdlog::stdout_logger_st (" wchar_logger" );
87
+ l->set_pattern (" %+" );
88
+ l->set_level (spdlog::level::trace);
89
+ l->trace (L" Test wchar_api" );
90
+ l->trace (L" Test wchar_api {}" , L" param" );
91
+ l->trace (L" Test wchar_api {}" , 1 );
92
+ l->trace (L" Test wchar_api {}" , std::wstring{L" wstring param" });
93
+ l->trace (std::wstring{L" Test wchar_api wstring" });
94
+
95
+ spdlog::drop_all ();
96
+ }
97
+
98
+ #endif
You can’t perform that action at this time.
0 commit comments