{"version":"2.1.247","anchor":"non-utf-8-and-quoted-file-paths-no-longer-corrupt-tree-listi","canonical_anchor":"non-utf-8-and-quoted-file-paths-no-longer-corrupt-tree-listi","heading":"Non-UTF-8 and quoted file paths no longer corrupt tree listings","tier":"notice","area":"Git Integration","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247\/e\/non-utf-8-and-quoted-file-paths-no-longer-corrupt-tree-listi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247","markdown":"### Non-UTF-8 and quoted file paths no longer corrupt tree listings\n\nFiles with unusual or non-UTF-8 names no longer corrupt git tree listings.\n\n**What**\n\nListing a git tree now runs with `core.quotePath=true` and decodes the quoting byte-exactly, including octal and C escapes, so files whose names are not valid UTF-8 come through intact instead of corrupting the recomputed tree.\n\n**Details**\n\n- Replaces splitting the raw output on NUL bytes.\n- The staged-blob check now reports `\"old_git\"` when it sees a non-regular file mode on git older than 2.32, instead of failing silently. The version test is major > 2, or major 2 with minor 32 or above.\n\n**Evidence**\n\n`core.quotePath=true`\n\n- Area: Git Integration\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}