From 7669bda5f65f6f4dbd5c24293ba86fc6682c2c52 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 30 Jun 2015 11:48:44 +0200 Subject: [PATCH] comments --- fix_latin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fix_latin.go b/fix_latin.go index 37824ca..68a6a16 100644 --- a/fix_latin.go +++ b/fix_latin.go @@ -19,6 +19,7 @@ type Fixer struct { allowControl bool handleCP1252 bool handleISO_8859_15 bool + // TODO: fix or reject overlong utf8 sequences } func AllowControl(f *Fixer) error { @@ -182,7 +183,7 @@ func Fix(r io.Reader, w io.Writer, options ...func(*Fixer) error) { continue } - // convert ISO-8859-1 to UTF-8 + // ISO-8859-1 if input[0] >= 0x80 && input[0] <= 0xFF { bytes := []byte(string(rune(input[0]))) for _, b := range bytes {