cloc icon indicating copy to clipboard operation
cloc copied to clipboard

Version 1.88 Not counter file format name

Open Sori31 opened this issue 5 years ago • 6 comments

DiemLOC.zip I using windown, when counter cloc-1.87 vs cloc-1.88 then different results

2020-10-23_150543 You can support me, tks

Sori31 avatar Oct 23 '20 08:10 Sori31

Do you have the Perl source code for cloc-1.87.exe? Or tell me the date when it was created? The issue has to do with how the contents of FileCounter20201023142441.txt are interpreted based on the terminal's language setting.

AlDanial avatar Oct 30 '20 15:10 AlDanial

cloc187.zip I send source code V1.87.

with V.1.87: when counter file/Diff then result Path file the same but V.188 path file rename lowercase D:\Baseloc\Test 188\UP0PB.sql -> D:\baseloc\test 188\up0pb.sql This could be due to the fix issue 501 and 521 https://github.com/AlDanial/cloc/issues/501

Sori31 avatar Nov 02 '20 08:11 Sori31

Try this: create a new list file based on what cloc thinks the file names are. This command creates listfile.txt which will have the files cloc sees in the folder File:

cloc --found listfile.txt File

Next, use this file instead of FileCounter20201023142441.txt:

cloc --by-file --list-file found.txt

AlDanial avatar Nov 04 '20 04:11 AlDanial

Loc.txt I try create file but the Result is the same 2020-11-05_161456

Sori31 avatar Nov 05 '20 09:11 Sori31

Here's what I get (Windows 10, US terminal setup) i534_cmd

AlDanial avatar Nov 06 '20 18:11 AlDanial

Reference Shift -jis https://stackoverflow.com/questions/5521737/shift-jis-decoding-encoding-in-perl

Sori31 avatar Apr 05 '21 10:04 Sori31