Unicode port: default to Unicode VERSIONINFO resources

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6064 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
wizou 2010-04-19 10:05:49 +00:00
parent 86c8f0bb32
commit 9b0e3aeb62

View file

@ -381,8 +381,15 @@ const TCHAR *CEXEBuild::GetLangNameAndCP(LANGID lang, unsigned int *codepage/*=N
return table->nlf.m_szName;
}
else {
// If the language table does not exist, then we default to Unicode in the
// Unicode version and English in the ANSI version.
#ifdef _UNICODE
if (codepage)
*codepage = 1252; // English US
*codepage = 1200; // Unicode
#else
if (codepage)
*codepage = 1252; // ANSI CP1252
#endif
if (lang == 1033)
return _T("English");