UCS-2LE is not the default on all platforms, so this needs to be explicit

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4389 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-11 21:31:11 +00:00
parent 6cdf2cbce6
commit c1b96d78d8

View file

@ -426,7 +426,7 @@ int WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr,
char cp[128];
create_code_page_string(cp, sizeof(cp), CodePage);
iconv_t cd = iconv_open(cp, "UCS-2");
iconv_t cd = iconv_open(cp, "UCS-2LE");
if (cd == (iconv_t) -1) {
return 0;
}
@ -462,7 +462,7 @@ int MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr,
char cp[128];
create_code_page_string(cp, sizeof(cp), CodePage);
iconv_t cd = iconv_open("UCS-2", cp);
iconv_t cd = iconv_open("UCS-2LE", cp);
if (cd == (iconv_t) -1) {
return 0;
}