1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2025-06-27 12:38:29 +00:00

common: remove in favor of stdlib unicode/utf8

This commit is contained in:
Vincent Batts 2015-09-25 14:33:24 -04:00
parent 7ef16e6f67
commit 7e38cefd4b
5 changed files with 9 additions and 75 deletions

View file

@ -10,9 +10,9 @@ import (
"io/ioutil"
"os"
"testing"
"unicode/utf8"
"github.com/vbatts/tar-split/archive/tar"
"github.com/vbatts/tar-split/tar/common"
"github.com/vbatts/tar-split/tar/storage"
)
@ -37,7 +37,7 @@ func TestISO8859(t *testing.T) {
break
}
fmt.Println(hdr.Name)
if !common.IsValidUtf8String(hdr.Name) {
if !utf8.ValidString(hdr.Name) {
fmt.Println([]byte(hdr.Name))
}
}