diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-15 22:09:06 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-15 22:09:06 +0200 |
| commit | bbc9b103acac96b83b150b81f2effe1b65c3f8a2 (patch) | |
| tree | b6635949ae0df8f43bf83d58df9bda57e605953e /internal/extract | |
| parent | 5d77c5b247b6da7a1d49c23b03d5522e398c7d73 (diff) | |
| download | krino-bbc9b103acac96b83b150b81f2effe1b65c3f8a2.tar.gz krino-bbc9b103acac96b83b150b81f2effe1b65c3f8a2.zip | |
docs: GUI design draft; code comments no longer name the owner
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) |
