ci(encoding): reject invalid UTF-8 and mojibake regressions#426
ci(encoding): reject invalid UTF-8 and mojibake regressions#426WHUTcjh-2024 wants to merge 1 commit into
Conversation
|
Thank you for your attention! We will conduct a review and respond to you as soon as possible. |
|
Review note after local verification: The encoding guard itself looks useful and the local verification passed:
I would not approve this branch as-is because the PR diff includes unrelated churn outside the encoding guard:
Recommended cleanup: keep only the encoding scripts, the two package scripts ( |
|
OK, i will see it |
8f25cb2 to
b922472
Compare
|
Thanks for the review and verification. I cleaned this up as requested and force-updated the branch to a single clean commit. The PR diff now keeps only:
I removed the unrelated package/workflow churn from the final PR diff; there are no package version, Verified locally:
|
ci(encoding): reject invalid UTF-8 and mojibake regressions
Description | 描述
为受版本控制的文本文件增加可测试的编码守卫,防止 PowerShell/旧代码页链路产生的静默乱码进入仓库。
.ps1使用 UTF-8 BOM,覆盖 issue 中的 L1 防线;git ls-files返回的已跟踪文本文件,不误扫二进制资产和本地产物;检测器允许正常中文、日文、重音拉丁字符和 emoji,避免“禁止所有非 ASCII”造成的误报。
Related Issue | 关联 Issue
Closes #387
Change Type | 修改类型
Self-test Checklist | 自测清单
Additional Notes | 其他说明
本地验证:
该 PR 仅增加编码检测与 CI 接入,不包含适配器、SDK 或其他功能改动。