encoder/filename: Wrap scsu package

This commit is contained in:
Klaus Post 2021-02-11 10:41:29 +01:00 committed by Nick Craig-Wood
parent f14220ef1e
commit 5ca7f1fe87
5 changed files with 37 additions and 6 deletions

View file

@ -4,7 +4,6 @@ import (
"encoding/base64"
"encoding/binary"
"github.com/dop251/scsu"
"github.com/klauspost/compress/huff0"
)
@ -38,7 +37,7 @@ func EncodeBytes(s string) (table byte, payload []byte) {
if i == tableSCSU {
var err error
olen := len(org)
org, err = scsu.EncodeStrict(s, make([]byte, 0, len(org)))
org, err = scsuEncodeStrict(s, make([]byte, 0, len(org)))
if err != nil || olen <= len(org) {
continue
}