Skip to content

Commit 5a47cf7

Browse files
committed
更新uchardet支持
1 parent babd936 commit 5a47cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chardet/chardet.uchardet.cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func DetectEncodingByUChardetCmd(dat []byte) (string, error) {
3030
func lookupUchardet() (string, error) {
3131
var ns = []string{"uchardet"}
3232
if runtime.GOOS == "windows" {
33-
ns = []string{"uchardet.exe", "uchardet"}
33+
ns = []string{"./uchardet.exe", "uchardet.exe", "uchardet"}
3434
}
3535
for _, name := range ns {
3636
_, err := exec.LookPath(name)

0 commit comments

Comments
 (0)