Skip to content

Commit

Permalink
Move source files to the src folder and minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
eakondratiev committed Feb 21, 2021
1 parent 7e67cbc commit 4075608
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
24 changes: 9 additions & 15 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -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`.

Expand Down Expand Up @@ -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
Expand Down
Binary file modified binary-linux-x64/ReadCrd
Binary file not shown.
7 changes: 6 additions & 1 deletion binary-linux-x64/checksum.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
sha256sum -b ReadCrd

SHA256
e51baa173b2884027757f36e1dc44ccbd193b2dab61ecb032f907a0ba6f27f9c
d96f92c283a2195b02a1126740bee03caa5255529a9c6ffbed647e4d2b894e8f

File date
2021-02-21 07:00 UTC
Binary file modified binary-windows-x64/ReadCrd.exe
Binary file not shown.
7 changes: 6 additions & 1 deletion binary-windows-x64/checksum.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
Get-FileHash ReadCrd.exe | Format-List

SHA256
052090BD4F7C33C27BD032FC35173C906F9E74CD91F825F58865951F1C92EDE5
19098A566ED26FF1077E724D3F204164BC61701D8BDA4F112100EF413526DDFB

File date
2021-02-21 07:00 UTC
10 changes: 7 additions & 3 deletions ReadCrd.c → src/ReadCrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -111,7 +111,11 @@ void Usage (char *filePath) {
" -e <encoding> 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);

}
Expand Down
File renamed without changes.

0 comments on commit 4075608

Please sign in to comment.