liberty-xdg: add desktop entry parser tests

And fix a discovered bug.
This commit is contained in:
2024-02-10 12:15:21 +01:00
parent 8d56fae41b
commit 2a1f17a8f7
3 changed files with 69 additions and 1 deletions

View File

@@ -351,6 +351,7 @@ desktop_file_unescape (const char *value, bool is_list)
break; case 'r': str_append_c (&s, '\r');
break; default: str_append_c (&s, *p);
}
escape = false;
}
else if (*p == '\\' && p[1])
escape = true;