From 44fadef05a7748c92ea2979c55a13383fc74c7d5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 11:21:46 +0000 Subject: [PATCH 1/2] Initial plan From ff0266c5e7b4f3e24325a29b317a83e170a9e710 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 11:29:10 +0000 Subject: [PATCH 2/2] Fix fs.write signature to use string overload with utf8 encoding Co-authored-by: simonmika <1467077+simonmika@users.noreply.github.com> --- Writer/File.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Writer/File.ts b/Writer/File.ts index 312bab2..207e4eb 100644 --- a/Writer/File.ts +++ b/Writer/File.ts @@ -38,9 +38,9 @@ export class File extends Writer { } protected override async writeImplementation(buffer: Enumerator): Promise { let result = true - const content = Buffer.from(buffer.reduce((r, item) => r + item, "")) + const content = buffer.reduce((r, item) => r + item, "") try { - const r = await fs.write(this.descriptor, content, 0, content.length) + const r = await fs.write(this.descriptor, content, null, "utf8") result = r.bytesWritten == content.length } catch { result = false