authorgravatar for tristancrawford@proton.meCursedByTheVoid <tristancrawford@proton.me> 2026-06-23 22:41:36-04:00
committergravatar for tristancrawford@proton.meCursedByTheVoid <tristancrawford@proton.me> 2026-06-23 22:41:36-04:00
log5dc2651cdd6ec35c99a3bc6e21787064758c0721
treeca181f1e39b65361b802214aa10731c181d471e2
parentb40b1178ef29ea9b013f73cc3cd4f9b976d0e120

std.zig.LibCInstallation: tokenize CR when parsing


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/zig/LibCInstallation.zig+1-1
...@@ -60,7 +60,7 @@ pub fn parse(allocator: Allocator, io: Io, libc_file: []const u8, target: *const...@@ -60,7 +60,7 @@ pub fn parse(allocator: Allocator, io: Io, libc_file: []const u8, target: *const
60 const contents = try Io.Dir.cwd().readFileAlloc(io, libc_file, allocator, .limited(std.math.maxInt(usize)));60 const contents = try Io.Dir.cwd().readFileAlloc(io, libc_file, allocator, .limited(std.math.maxInt(usize)));
61 defer allocator.free(contents);61 defer allocator.free(contents);
6262
63 var it = std.mem.tokenizeScalar(u8, contents, '\n');63 var it = std.mem.tokenizeAny(u8, contents, "\n\r");
64 while (it.next()) |line| {64 while (it.next()) |line| {
65 if (line.len == 0 or line[0] == '#') continue;65 if (line.len == 0 or line[0] == '#') continue;
66 var line_it = std.mem.splitScalar(u8, line, '=');66 var line_it = std.mem.splitScalar(u8, line, '=');