Skip to content

error when there are Chinese files in cloc --diff --git  #457

Closed
@Zzzzzz0H0

Description

@Zzzzzz0H0

hi, I use cloc --git --diff compare 2 committed diffs ,but get a error when changed file name is Chinese

versioin: 1.8.4

os: ubuntu

git add 使用说明.txt

git commit -m "add chinese txt file"

cloc -v  --git --diff HEAD^ HEAD

git ls-tree --name-only -r HEAD
git ls-tree --name-only -r HEAD^
git archive -o /tmp/t4rZiA42Ro.tar HEAD 
'"\344\275\277\347\224\250\350\257\264\346\230\216.txt"' 'test.c'
fatal: pathspec '"\344\275\277\347\224\250\350\257\264\346\230\216.txt"' did not match any files
Failed to create tarfile of files from git. at /var/lib/jenkins/workspace/cloc-1.84/cloc line 4703.

使用说明.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions