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

@@ -18,7 +18,7 @@ BOOST_AUTO_TEST_CASE(test_quoted_key)
{
TOML11_TEST_LEX_ACCEPT(lex_key, "\"127.0.0.1\"", "\"127.0.0.1\"");
TOML11_TEST_LEX_ACCEPT(lex_key, "\"character encoding\"", "\"character encoding\"");
TOML11_TEST_LEX_ACCEPT(lex_key, "\"ʎǝʞ\"", "\"ʎǝʞ\"");
TOML11_TEST_LEX_ACCEPT(lex_key, u8"\"ʎǝʞ\"", u8"\"ʎǝʞ\"");
TOML11_TEST_LEX_ACCEPT(lex_key, "'key2'", "'key2'");
TOML11_TEST_LEX_ACCEPT(lex_key, "'quoted \"value\"'", "'quoted \"value\"'");
}