Rossen
Rossen
Hi @albertomn86, thanks. This PR is now out of date as this repo is low on activity. I see that is marked to target wazuh 3.11.0. If that the case,...
That could only happen at https://github.com/ValvePython/vdf/blob/master/vdf/__init__.py#L361 Which means that `utf-16` on that build host must have been understood as `utf-16be` (platform dependent), and since the test uses LE there will...
Could you the a file that reproduces the issue?
So the issue is that when you `dump` a `dict`, then `'` are escaped, correct? Here are all the characters they escape from the SDK, which includes `'`: https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/tier1/utlbuffer.cpp#L54-L69 I...
Generally, VDF supports `\` for escapes, but that doesn't look to be the case for those files. File paths on Windows, like the ones in the examples, cannot have `"`,...
~~Duplicate of #28~~
My bad, the other issue with `\` as the last character. You can use `escaped=False` to disable escaping. ```python >>> print(vdf.dumps({'path': 'd:\\NekoNeko\\Build'}, escaped=False)) "path" "d:\NekoNeko\Build" ```
That file most likely has entries with duplicate keys. I suggest using `mapper=vdf.VDFDict`, and check the readme on how that handles duplicate keys.
My bad, you have to also set `merge_duplicate_keys=False`. I've also pushed patch as that exception should not happen. The problem section in the file (line `564618`): ``` "12187" { "name"...
Hi @jaredballou, the problem is that this module is supposed to (de)serialize to/from vdf/kv1. When we add #include and #base, how do you specify the location of the included files?...