add u8 to the front of UTF-8 string literal

explicitly set the character encoding for them, for compatibility
This commit is contained in:
ToruNiina
2018-12-04 20:59:44 +09:00
parent 1a2fa6d53a
commit c3e1f68ef6
2 changed files with 3 additions and 3 deletions

View File

@@ -31,8 +31,8 @@ BOOST_AUTO_TEST_CASE(test_basic_string)
"\"192.168.1.1\"",
"\"192.168.1.1\"");
TOML11_TEST_LEX_ACCEPT(lex_string,
"\"中国\"",
"\"中国\"");
u8"\"中国\"",
u8"\"中国\"");
TOML11_TEST_LEX_ACCEPT(lex_string,
"\"You'll hate me after this - #\"",
"\"You'll hate me after this - #\"");