From 2935d7849099ec05db30bf4d5142af7fcef19366 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Fri, 28 Apr 2017 23:08:41 +0200 Subject: [PATCH] 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. --- simgear/misc/strutils_test.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/misc/strutils_test.cxx b/simgear/misc/strutils_test.cxx index 2ffd03f4..7f89509b 100644 --- a/simgear/misc/strutils_test.cxx +++ b/simgear/misc/strutils_test.cxx @@ -201,7 +201,7 @@ void test_escapeAndUnescapeRoundTrips() // Ditto for "\0402": it's a space ('\040') followed by a '2'. vector stringsToTest( {"", "\\", "\n", "\\\\", "\"\'\?\t\rAG\v\a \b\f\\", "\x23\xf8", - "\0332", "\0402", "\uab42", "\U12345678"}); + "\0332", "\0402", "\u00e0", "\U000000E9"}); const string withBinary = (string("abc") + '\000' + "\003def\012\037\040\176\177\376\377");