fallback decode utf8 strict to win 1250

This commit is contained in:
maj00r
2026-09-04 23:50:41 +02:00
parent f7219cf705
commit c492c26047
9 changed files with 86 additions and 10 deletions

View File

@@ -63,6 +63,8 @@ public sealed class InMemoryFileSystem : IFileSystem
public string[] ReadAllLines(string path) =>
ReadAllText(path).Split('\n').Select(line => line.TrimEnd('\r')).ToArray();
public byte[] ReadAllBytes(string path) => Bytes(path);
public Stream OpenRead(string path) => new MemoryStream(Bytes(path), writable: false);
public void WriteAllText(string path, string contents) => WithFile(path, contents);