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 fb016a1 commit 53353deCopy full SHA for 53353de
src/test/test-escape.c
@@ -196,6 +196,10 @@ TEST(shell_maybe_quote) {
196
197
test_shell_maybe_quote_one("głąb\002\003rząd", 0, "\"głąb\\002\\003rząd\"");
198
test_shell_maybe_quote_one("głąb\002\003rząd", SHELL_ESCAPE_POSIX, "$'głąb\\002\\003rząd'");
199
+
200
+ /* Bogus UTF-8 strings */
201
+ test_shell_maybe_quote_one("\250\350", 0, "\"\\250\\350\"");
202
+ test_shell_maybe_quote_one("\250\350", SHELL_ESCAPE_POSIX, "$'\\250\\350'");
203
}
204
205
static void test_quote_command_line_one(char **argv, const char *expected) {
0 commit comments