]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: mark *.po files at any directory level as UTF-8
authorJohannes Sixt <j6t@kdbg.org>
Sun, 25 Jan 2026 09:46:23 +0000 (10:46 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 25 Jan 2026 09:53:08 +0000 (10:53 +0100)
commit1a729ccb930f3c3e206117aeb4f536c9864e09c9
tree4d7c96cb39aafc1c9aec7f3240ca98fbf877d3fc
parent4b700c24e858cbc880e103ad128312fd2b239778
git-gui: mark *.po files at any directory level as UTF-8

When a commit is viewed in Gitk that changes a file in po/glossary, the
patch text shows mojibake instead of correctly decoded UTF-8 text.
Gitk retrieves the encoding attribute to decide how to treat the bytes
that make up the patch text. There is an attribute definition that all
files are US-ASCII, and a later attribute definition overrides this.
But the override, which specifies UTF-8, applies only to *.po files in
directory po/ and does not apply to subdirectories.

Widen the pattern to apply to all directory levels.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
.gitattributes