Added !appendfile /CHARSET parameter, output is written using the new NOStream class
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6326 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
fe8e4a36bf
commit
9b35c900cb
10 changed files with 390 additions and 97 deletions
|
@ -41,7 +41,7 @@ unsigned int ExeHeadStringList::getnum() const
|
|||
for(;;)
|
||||
{
|
||||
if (pos+=cb >= cbList) break;
|
||||
cb = StrLenUTF16LE(p+=cb) + 1, ++num;
|
||||
cb = StrLenUTF16(p+=cb) + 1, ++num;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -87,7 +87,7 @@ unsigned int ExeHeadStringList::find(const TCHAR *str, WORD codepage, bool proce
|
|||
{
|
||||
WCToUTF16LEHlpr cnv;
|
||||
if (!cnv.Create(str)) return -1;
|
||||
unsigned int pos = find(cnv.Get(),StrLenUTF16LE(cnv.Get()),codepage,processed,ppBufMB);
|
||||
unsigned int pos = find(cnv.Get(),StrLenUTF16(cnv.Get()),codepage,processed,ppBufMB);
|
||||
cnv.Destroy();
|
||||
return pos;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ unsigned int ExeHeadStringList::find(const void *ptr, unsigned int cchF, WORD co
|
|||
for(;;)
|
||||
{
|
||||
if (pos+=cb >= cbList) break;
|
||||
cb = (StrLenUTF16LE(p+=cb) + 1) * 2;
|
||||
cb = (StrLenUTF16(p+=cb) + 1) * 2;
|
||||
if (cb < cbF) continue;
|
||||
if (byte_rev_match(p,find,cbF)) { retval = pos / WIDEDIV; break; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue