fix signed shifts in raddbg_markup utf8 decoding; fix quoting of argument strings with spaces in command line target builds

This commit is contained in:
Ryan Fleury
2025-10-20 16:19:22 -07:00
parent b371bff6f2
commit c921645043
2 changed files with 14 additions and 4 deletions
+8 -1
View File
@@ -10028,7 +10028,14 @@ rd_init(CmdLine *cmdln)
String8List passthrough_args_list = {0};
for(String8Node *n = target_args.first->next; n != 0; n = n->next)
{
str8_list_push(scratch.arena, &passthrough_args_list, n->string);
if(str8_find_needle(n->string, 0, str8_lit(" "), 0) < n->string.size)
{
str8_list_pushf(scratch.arena, &passthrough_args_list, "\"%S\"", escaped_from_raw_str8(scratch.arena, n->string));
}
else
{
str8_list_push(scratch.arena, &passthrough_args_list, n->string);
}
}
StringJoin join = {str8_lit(""), str8_lit(" "), str8_lit("")};
arguments_string = str8_list_join(scratch.arena, &passthrough_args_list, &join);