Skip to content

Commit 1a729cc

Browse files
committed
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>
1 parent 4b700c2 commit 1a729cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
* whitespace=indent-with-non-tab,trailing-space,space-before-tab,tabwidth=4
22
* encoding=US-ASCII
33
git-gui.sh encoding=UTF-8
4-
/po/*.po encoding=UTF-8
4+
*.po encoding=UTF-8
55
/GIT-VERSION-GEN eol=lf
66
Makefile whitespace=!indent,trail,space
77
meson.build whitespace=space

0 commit comments

Comments
 (0)