unicode: fix lookup table generation

This commit is contained in:
Mitchell Hashimoto
2025-09-30 16:10:53 -07:00
parent 7ec57aeebd
commit 913d2dfb23
5 changed files with 40 additions and 22 deletions

View File

@@ -84,7 +84,11 @@ pub fn main() !void {
defer alloc.free(t.stage1);
defer alloc.free(t.stage2);
defer alloc.free(t.stage3);
try t.writeZig(std.io.getStdOut().writer());
var buf: [4096]u8 = undefined;
var stdout = std.fs.File.stdout().writer(&buf);
try t.writeZig(&stdout.interface);
try stdout.end();
// Uncomment when manually debugging to see our table sizes.
// std.log.warn("stage1={} stage2={} stage3={}", .{