File tree Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 22#include <commctrl.h>
33
44VS_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
77FILEOS VOS__WINDOWS32
88FILETYPE 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 }
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 352352#define MRecVolLimit L" \n Total number of usual and recovery volumes must not exceed %d"
353353#define MVolumeNumber L" volume %d"
354354#define MCannotDelete L" \n Cannot delete %s"
355- #define MRecycleFailed L" \n Cannot move some files and folders to Recycle Bin"
355+ #define MRecycleFailed L" \n Cannot move some files and directories to Recycle Bin"
356356#define MCalcCRC L" \n Calculating the checksum"
357357#define MTooLargeSFXArc L" \n Too large SFX archive. Windows cannot run the executable file exceeding 4 GB."
358358#define MCalcCRCAllVol L" \n Calculating checksums of all volumes."
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments