Fix build failure in strutils_test.cxx
The Windows and Mac builders on jenkins complain that '\U12345678' is an invalid universal character; let's try with '\U000000E9' instead, which should be LATIN SMALL LETTER E WITH ACUTE. Also replace '\uab42' with '\u00e0' to remove a warning on the Windows builder, due to the fact that '\uab42' cannot be represented in the current code page (1252). This doesn't mean '\uab42' was incorrect, though; I'm only changing this to make the warning disappear.
This commit is contained in:
@@ -201,7 +201,7 @@ void test_escapeAndUnescapeRoundTrips()
|
|||||||
// Ditto for "\0402": it's a space ('\040') followed by a '2'.
|
// Ditto for "\0402": it's a space ('\040') followed by a '2'.
|
||||||
vector<string> stringsToTest(
|
vector<string> stringsToTest(
|
||||||
{"", "\\", "\n", "\\\\", "\"\'\?\t\rAG\v\a \b\f\\", "\x23\xf8",
|
{"", "\\", "\n", "\\\\", "\"\'\?\t\rAG\v\a \b\f\\", "\x23\xf8",
|
||||||
"\0332", "\0402", "\uab42", "\U12345678"});
|
"\0332", "\0402", "\u00e0", "\U000000E9"});
|
||||||
|
|
||||||
const string withBinary = (string("abc") + '\000' +
|
const string withBinary = (string("abc") + '\000' +
|
||||||
"\003def\012\037\040\176\177\376\377");
|
"\003def\012\037\040\176\177\376\377");
|
||||||
|
|||||||
Reference in New Issue
Block a user