diff --git a/src/font/sprite/draw/symbols_for_legacy_computing_supplement.zig b/src/font/sprite/draw/symbols_for_legacy_computing_supplement.zig index bd91d3925..46c7165a8 100644 --- a/src/font/sprite/draw/symbols_for_legacy_computing_supplement.zig +++ b/src/font/sprite/draw/symbols_for_legacy_computing_supplement.zig @@ -102,7 +102,14 @@ pub fn draw1CD00_1CDE5( const data = @embedFile("octants.txt"); var it = std.mem.splitScalar(u8, data, '\n'); - while (it.next()) |line| { + while (it.next()) |raw_line| { + // Trim \r so this works with both LF and CRLF line endings, + // since git may convert octants.txt to CRLF on Windows checkouts. + const line = if (raw_line.len > 0 and raw_line[raw_line.len - 1] == '\r') + raw_line[0 .. raw_line.len - 1] + else + raw_line; + // Skip comments if (line.len == 0 or line[0] == '#') continue;