diff options
Diffstat (limited to 'internal/extract')
| -rw-r--r-- | internal/extract/plain.go | 2 | ||||
| -rw-r--r-- | internal/extract/plain_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/extract/plain.go b/internal/extract/plain.go index ce9dedc..beffae1 100644 --- a/internal/extract/plain.go +++ b/internal/extract/plain.go @@ -39,7 +39,7 @@ func readDecoded(path string) (string, error) { // sample that merely looks like UTF-8 must hold for the WHOLE file — no // NUL byte anywhere, and no invalid UTF-8 anywhere past the sample — or // the file is ErrUnsupported after all (a self-extracting installer has no -// text in krino's sense, Łukasz's decision after the plan 10 re-check); the +// text in krino's sense, decided after the plan 10 re-check); the // Latin-1 fallback in decode // never applies to a sniffed file, only to a file whose extension already // names it as text. D2: when the file continues past the sample (n == diff --git a/internal/extract/plain_test.go b/internal/extract/plain_test.go index c8e1008..e53ac73 100644 --- a/internal/extract/plain_test.go +++ b/internal/extract/plain_test.go @@ -156,7 +156,7 @@ func TestToolsListedInOrder(t *testing.T) { // sample — sniffText must reject the whole file, not just decode what the // sample alone promised (it must not fall back to Latin-1 the way a known // text extension would). Such a file - a self-extracting installer, say - -// has no text in krino's sense (Łukasz, after the plan 10 re-check). +// has no text in krino's sense (decided after the plan 10 re-check). func TestSniffWholeFileMustBeValid(t *testing.T) { e := newWithPath("") data := append([]byte(strings.Repeat("x", 8192)), 0xFF, 0x00) |
