do not strip quotations from command line arguments when launching debuggee processes, as otherwise quoted arguments with spaces will be broken apart in inconsistent & unintended ways; fix utf16 decoding with certain ranges of codepoints

This commit is contained in:
Ryan Fleury
2024-01-29 11:28:58 -08:00
parent 28e258b5dc
commit 1ade5e44fa
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -1341,7 +1341,7 @@ utf16_decode(U16 *str, U64 max){
result.codepoint = str[0];
result.inc = 1;
if (max > 1 && 0xD800 <= str[0] && str[0] < 0xDC00 && 0xDC00 <= str[1] && str[1] < 0xE000){
result.codepoint = ((str[0] - 0xD800) << 10) | (str[1] - 0xDC00);
result.codepoint = ((str[0] - 0xD800) << 10) | (str[1] - 0xDC00) + 0x10000;
result.inc = 2;
}
return(result);
-8
View File
@@ -6900,14 +6900,6 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
String8 string = str8_substr(args, r1u64(start_split_idx, idx));
if(string.size > 0)
{
if(str8_match(str8_prefix(string, 1), str8_lit("\""), 0))
{
string = str8_skip(string, 1);
}
if(str8_match(str8_postfix(string, 1), str8_lit("\""), 0))
{
string = str8_chop(string, 1);
}
str8_list_push(scratch.arena, &cmdln_strings, string);
}
start_split_idx = idx+1;