diff --git a/ReadMe.md b/ReadMe.md index f49a190..a6b62cb 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,4 +1,4 @@ -# Windows CRD Files Reader +# Cardfile for Windows CRD Files Reader ReadCrd is a cross-planform console application which prints content of the `Cardfile for Windows 3.x` file (`CRD` extension). The file signature must be `MGC` or `RRG`. @@ -26,24 +26,18 @@ or to read a file with WIndows-1251 encoding ./ReadCrd -e Windows-1251 Contacts.CRD ``` -## File Hash -### Windows -``` -Get-FileHash ReadCrd.exe | Format-List +### Windows Terminal -Algorithm : SHA256 -Hash : 052090BD4F7C33C27BD032FC35173C906F9E74CD91F825F58865951F1C92EDE5 -Path : ReadCrd.exe -File date : 2021-02-06 12:00 +Use the command `chcp` to display and change the **code page** used by the terminal. For example, to set the UTF-8 encoding use ``` - -### Linux +chcp 65001 +ReadCrd.exe -e Windows-1251 Contacts.CRD ``` -sha256sum -b ReadCrd -Hash : e51baa173b2884027757f36e1dc44ccbd193b2dab61ecb032f907a0ba6f27f9c -File : ReadCrd -File date : 2021-02-06 12:00 +Or set the Windows-1251 encoding +``` +chcp 1251 +ReadCrd.exe Contacts.CRD ``` ## Compilation diff --git a/binary-linux-x64/ReadCrd b/binary-linux-x64/ReadCrd index 732f9bb..4d25fb8 100755 Binary files a/binary-linux-x64/ReadCrd and b/binary-linux-x64/ReadCrd differ diff --git a/binary-linux-x64/checksum.txt b/binary-linux-x64/checksum.txt index 06f3ed0..19d9f55 100644 --- a/binary-linux-x64/checksum.txt +++ b/binary-linux-x64/checksum.txt @@ -1,2 +1,7 @@ +sha256sum -b ReadCrd + SHA256 -e51baa173b2884027757f36e1dc44ccbd193b2dab61ecb032f907a0ba6f27f9c +d96f92c283a2195b02a1126740bee03caa5255529a9c6ffbed647e4d2b894e8f + +File date +2021-02-21 07:00 UTC diff --git a/binary-windows-x64/ReadCrd.exe b/binary-windows-x64/ReadCrd.exe index cb2ee90..09c4d76 100755 Binary files a/binary-windows-x64/ReadCrd.exe and b/binary-windows-x64/ReadCrd.exe differ diff --git a/binary-windows-x64/checksum.txt b/binary-windows-x64/checksum.txt index 4bcd47b..55107f6 100644 --- a/binary-windows-x64/checksum.txt +++ b/binary-windows-x64/checksum.txt @@ -1,2 +1,7 @@ +Get-FileHash ReadCrd.exe | Format-List + SHA256 -052090BD4F7C33C27BD032FC35173C906F9E74CD91F825F58865951F1C92EDE5 +19098A566ED26FF1077E724D3F204164BC61701D8BDA4F112100EF413526DDFB + +File date +2021-02-21 07:00 UTC diff --git a/ReadCrd.c b/src/ReadCrd.c similarity index 97% rename from ReadCrd.c rename to src/ReadCrd.c index e29f676..c187ad7 100644 --- a/ReadCrd.c +++ b/src/ReadCrd.c @@ -60,14 +60,14 @@ int main (int argc, char** argv) { } filename = argv[argc - 1]; /* last argument */ - printf ("\nRead Windows Card MGC/RRG File %s", filename); + printf ("\nWindows Card File %s", filename); switch (ReadFile (filename, enc)) { case -1: printf ("\nError reading file.\n\n"); break; case -2: - printf ("\nNot card file.\n\n"); + printf ("\nNot the Windowos Card file.\n\n"); break; case 0: printf ("\n\n"); @@ -111,7 +111,11 @@ void Usage (char *filePath) { " -e decode from this encoding to UTF-8.\n" " currently supports only Windows-1251.\n\n" " EXAMPLE:\n" - " %s -e Windows-1251 file.CDR\n\n", + " %s -e Windows-1251 file.CDR\n\n" + " NOTE:\n" + " In the Windows terminal use chcp command to set the code page.\n" + " For example: \"chcp 1251\" to set the Windwso-1251 code page.\n\n" + , fileName, fileName); } diff --git a/ReadCrd.h b/src/ReadCrd.h similarity index 100% rename from ReadCrd.h rename to src/ReadCrd.h