We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b030346 commit 8aba382Copy full SHA for 8aba382
tests/internal/utils.c
@@ -278,7 +278,6 @@ void test_write_str_invalid_leading_byte()
278
279
void test_write_str_special_bytes()
280
{
281
-
282
struct write_str_case cases[] = {
283
/*
284
* Escaped leading hex (two hex, one valid unicode)
@@ -288,6 +287,11 @@ void test_write_str_special_bytes()
288
287
"\\u4f60\\u597d\\u4e16\\u754c",
289
FLB_TRUE
290
},
+ {
291
+ "\xC3\xA1\x0A", 3, /* UTF-8 encoding of á and newline */
292
+ "\\u00e1\\n", /* Expected escaped output */
293
+ FLB_TRUE
294
+ },
295
{ 0 }
296
};
297
0 commit comments