Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Sep 13, 2025

No description provided.

This replaces ✓/✗ symbols with [ OK ]/[ FAIL ] for better compatibility.
It also standardizes printf formatting in git pre-push hook, ensuring
brackets display in normal color, only status text colored.

Change-Id: I4ba4f74acd36895b415648fddd9d04a1498858e0
The commit-msg hook was incorrectly flagging Unicode symbols like ✓ and
✗ as "Chinese characters" due to improper locale handling with LC_ALL=C.

It uses Python3 with proper Unicode regex '[\u4e00-\u9fff]' for accurate
detection adds fallback logic for systems without Python3, filtering out
known Unicode symbols from false positive matches.

Change-Id: I9b6b446b8f6df7a4b081f51c53204d3c97274607
@jserv jserv merged commit bc44e71 into master Sep 13, 2025
4 checks passed
@jserv jserv deleted the refine-git-hooks branch September 13, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant