mirror of
https://github.com/rclone/rclone.git
synced 2025-06-20 06:15:50 +02:00
encoder/filename: Wrap scsu package
This commit is contained in:
committed by
Nick Craig-Wood
parent
f14220ef1e
commit
5ca7f1fe87
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user