Skip to content

Commit 6048659

Browse files
authored
Remove unescaping from test strings, fixing collation test failures. (#507)
1 parent 0c422e2 commit 6048659

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

executors/cpp/coll.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,15 @@ auto TestCollator(json_object *json_in) -> string {
165165
json_object *str1 = json_object_object_get(json_in, "s1");
166166
json_object *str2 = json_object_object_get(json_in, "s2");
167167

168-
// Unescape the input strings?
169168
// We need to handle null characters, so get the length and the bytes.
170169
int str1_len = json_object_get_string_len(str1);
171170
string_view string1(json_object_get_string(str1), str1_len);
172171
int str2_len = json_object_get_string_len(str2);
173172
string_view string2(json_object_get_string(str2), str2_len);
174173

175174
// Does this conversion preserve the data?
176-
UnicodeString us1 = UnicodeString::fromUTF8(string1).unescape();
177-
UnicodeString us2 = UnicodeString::fromUTF8(string2).unescape();
175+
UnicodeString us1 = UnicodeString::fromUTF8(string1);
176+
UnicodeString us2 = UnicodeString::fromUTF8(string2);
178177

179178
string test_result;
180179
int uni_result_utf8;

0 commit comments

Comments
 (0)