Line-ending check: catch UTF-16 text that Git treats as binary
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
Start with tools/ci/check_line_endings.py and the output of git ls-files --eol, which the script already relies on to classify files as i/crlf, i/mixed or i/-text. For entries reported as i/-text whose extension is not a real binary type, read the first bytes and fail on a UTF-16/UTF-32 byte-order mark or on CR LF. Done when a temporary git repository test shows the script failing for a UTF-16 CR LF .txt file and passing for a .png.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
tools/ci/check_line_endings.py rejects files that git ls-files --eol reports as i/crlf or i/mixed. A file Git classifies as binary by content is reported as i/-text and passes, and that includes UTF-16 text (every ASCII character is followed by a NUL byte), with CR LF inside. Windows PowerShell 5.1 writes UTF-16 with CR LF by default (> and Out-File), so such a file is easy to commit by accident.
Nothing breaks today: the maps and vectors whose bytes matter are checked by SHA-256 in their own tests. It is only the UTF-8 / LF convention that can slip.
To do
- For
i/-textentries whose extension is not on a short list of real binary types, read the first bytes and fail on a UTF-16 / UTF-32 byte-order mark or on CR LF. - A CPU test: a temporary git repository with a UTF-16 CR LF
.txtand a.png; the script must fail for the first file only.
- Ngôn ngữ chính
- C++
- Star
- 12
- Fork
- 2
- Merge trung bình
- 3 giờ 10 phút
- Pull request đã merge (30 ngày)
- 171
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của phantoslayer21/wronggpu
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
phantoslayer21/wronggpu#275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
phantoslayer21/wronggpu#274 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
phantoslayer21/wronggpu#241 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
phantoslayer21/wronggpu#234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Launcher tests: "an older record: update available" fakes a version newer than the test buildĐang mởbug build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
phantoslayer21/wronggpu#233 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của phantoslayer21/wronggpu
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ReyeMe/SaturnRingLib#155 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Nheko-Reborn/nheko#2092 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
isocpp/CppCoreGuidelines#2345 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
ROCm/rocm-libraries#16108 ·
Maintainer thường phản hồi trong vòng 2 ngày