Skip to content

Commit 0551c1d

Browse files
committed
Pin WNDB fixture line endings so Windows checkout doesn't corrupt them
WNDB data lines embed their own byte offset, which WndbReader validates against the actual position. The repo's default `* text=auto` lets Git normalize these fixtures to CRLF on Windows checkout, inserting a CR before every LF and shifting every offset after the first line; every WndbReaderTest case failed on Windows CI as a result. Scoping -text to the fixture directory keeps the checkout byte-identical everywhere.
1 parent d01ddff commit 0551c1d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • opennlp-extensions/opennlp-wordnet/src/test/resources/opennlp/wordnet/mini-wndb
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# WNDB is a byte-offset format: each data line embeds its own byte position in the
2+
# file, and WndbReader validates that offset against the actual position. Line-ending
3+
# normalization on checkout (the repo root's `* text=auto`) would insert a CR before
4+
# every LF on Windows, shifting every offset after the first line and breaking every
5+
# fixture that has more than one line. Disable it here so checkout is byte-identical
6+
# on every platform.
7+
* -text

0 commit comments

Comments
 (0)