View Single Post
Old 23rd July 2019, 18:22   #18
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,172
A couple of things you can try for 2.x:

In util.cpp:

* Change "CP%d" to "CP%d//TRANSLIT" in create_code_page_string.

* in MultiByteToWideChar, change

Quote:
iconv_t cd = iconv_open("UCS-2LE", cp);
if (cd == (iconv_t) -1) {
return 0;
}
to
Quote:
iconv_t cd = iconv_open("UCS-2LE", cp);
if (cd == (iconv_t) -1) cd = iconv_open("UTF-16LE", cp); // Retry with UTF
if (cd == (iconv_t) -1) {
fprintf(g_output,"iconv_open failed\n"),fflush(g_output);
return 0;
}
and

Quote:
if (nsis_iconv_adaptor(iconv, cd, &in, &inbytes, &out, &outbytes) == (size_t) -1) {
iconv_close(cd);
return 0;
}
to
Quote:

if (nsis_iconv_adaptor(iconv, cd, &in, &inbytes, &out, &outbytes) == (size_t) -1) {
iconv_close(cd);
fprintf(g_output,"nsis_iconv_adaptor failed\n"),fflush(g_output);
return 0;
}
Which version of the UAC plug-in are you using?

Make sure UAC.nsh contains

Quote:
!ifdef _UAC_ParseDefineFlags_orin_f2
!undef _UAC_ParseDefineFlags_orin_f2
!endif
at the end of _UAC_ParseDefineFlags_orin

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote