Skip to content

Commit 0b6ccf6

Browse files
ianhiclaude
andcommitted
Fix git encoding issues with encoding test files
Mark wrongenc.inc files as binary in .gitattributes to prevent encoding conversion issues on different platforms. These files contain intentional Latin-1 encoded content for testing Sphinx's encoding handling and should remain byte-for-byte identical. Fixes git errors like: - "failed to encode from UTF-8 to latin-1" - stash/unstash failures with these files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 7aef0db commit 0b6ccf6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.gitattributes

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ tests/roots/test-pycode/cp_1251_coded.py dos
5151

5252
# Non UTF-8 encodings
5353
tests/roots/test-pycode/cp_1251_coded.py working-tree-encoding=windows-1251
54-
tests/roots/test-root/wrongenc.inc working-tree-encoding=latin-1
55-
tests/roots/test-warnings/wrongenc.inc working-tree-encoding=latin-1
54+
55+
# Encoding test files - treated as binary to prevent encoding conversion issues
56+
# These files contain intentional Latin-1 encoded content for testing Sphinx's encoding handling
57+
tests/roots/test-root/wrongenc.inc binary
58+
tests/roots/test-warnings/wrongenc.inc binary
5659

5760
# Generated files
5861
# https://github.com/github/linguist/blob/master/docs/overrides.md

0 commit comments

Comments
 (0)