Skip to content

Commit 36345d0

Browse files
committed
Added unrar 6.0.2
1 parent 8f070c2 commit 36345d0

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

unrar/consio.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void GetPasswordText(wchar *Str,uint MaxLength)
164164
SetConsoleMode(hConIn,ConInMode);
165165
SetConsoleMode(hConOut,ConOutMode);
166166
#else
167-
char StrA[MAXPASSWORD];
167+
char StrA[MAXPASSWORD*4]; // "*4" for multibyte UTF-8 characters.
168168
#if defined(_EMX) || defined (__VMS)
169169
fgets(StrA,ASIZE(StrA)-1,stdin);
170170
#elif defined(__sun)
@@ -248,6 +248,12 @@ bool getwstr(wchar *str,size_t n)
248248
ErrHandler.Exit(RARX_USERBREAK);
249249
}
250250
StrA[ReadSize]=0;
251+
252+
// We expect ANSI encoding here, but "echo text|rar ..." to pipe to RAR,
253+
// such as send passwords, we get OEM encoding by default, unless we
254+
// use "chcp" in console. But we avoid OEM to ANSI conversion,
255+
// because we also want to handle ANSI files redirection correctly,
256+
// like "rar ... < ansifile.txt".
251257
CharToWide(&StrA[0],str,n);
252258
cleandata(&StrA[0],StrA.Size()); // We can use this function to enter passwords.
253259
}

unrar/dll.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include <commctrl.h>
33

44
VS_VERSION_INFO VERSIONINFO
5-
FILEVERSION 6, 0, 1, 3589
6-
PRODUCTVERSION 6, 0, 1, 3589
5+
FILEVERSION 6, 0, 2, 3610
6+
PRODUCTVERSION 6, 0, 2, 3610
77
FILEOS VOS__WINDOWS32
88
FILETYPE VFT_APP
99
{
@@ -14,8 +14,8 @@ FILETYPE VFT_APP
1414
VALUE "CompanyName", "Alexander Roshal\0"
1515
VALUE "ProductName", "RAR decompression library\0"
1616
VALUE "FileDescription", "RAR decompression library\0"
17-
VALUE "FileVersion", "6.0.1\0"
18-
VALUE "ProductVersion", "6.0.1\0"
17+
VALUE "FileVersion", "6.0.2\0"
18+
VALUE "ProductVersion", "6.0.2\0"
1919
VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2020\0"
2020
VALUE "OriginalFilename", "Unrar.dll\0"
2121
}

unrar/file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ bool File::Open(const wchar *Name,uint Mode)
120120
#ifdef _OSF_SOURCE
121121
extern "C" int flock(int, int);
122122
#endif
123-
124123
if (!OpenShared && UpdateMode && handle>=0 && flock(handle,LOCK_EX|LOCK_NB)==-1)
125124
{
126125
close(handle);
127126
return false;
128127
}
128+
129129
#endif
130130
if (handle==-1)
131131
hNewFile=FILE_BAD_HANDLE;

unrar/loclang.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
#define MRecVolLimit L"\nTotal number of usual and recovery volumes must not exceed %d"
353353
#define MVolumeNumber L"volume %d"
354354
#define MCannotDelete L"\nCannot delete %s"
355-
#define MRecycleFailed L"\nCannot move some files and folders to Recycle Bin"
355+
#define MRecycleFailed L"\nCannot move some files and directories to Recycle Bin"
356356
#define MCalcCRC L"\nCalculating the checksum"
357357
#define MTooLargeSFXArc L"\nToo large SFX archive. Windows cannot run the executable file exceeding 4 GB."
358358
#define MCalcCRCAllVol L"\nCalculating checksums of all volumes."

unrar/version.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RARVER_MAJOR 6
22
#define RARVER_MINOR 0
3-
#define RARVER_BETA 1
4-
#define RARVER_DAY 22
5-
#define RARVER_MONTH 10
3+
#define RARVER_BETA 2
4+
#define RARVER_DAY 12
5+
#define RARVER_MONTH 11
66
#define RARVER_YEAR 2020

0 commit comments

Comments
 (0)