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:
parent
86c8f0bb32
commit
9b0e3aeb62
1 changed files with 8 additions and 1 deletions
|
@ -381,8 +381,15 @@ const TCHAR *CEXEBuild::GetLangNameAndCP(LANGID lang, unsigned int *codepage/*=N
|
||||||
return table->nlf.m_szName;
|
return table->nlf.m_szName;
|
||||||
}
|
}
|
||||||
else {
|
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)
|
if (codepage)
|
||||||
*codepage = 1252; // English US
|
*codepage = 1200; // Unicode
|
||||||
|
#else
|
||||||
|
if (codepage)
|
||||||
|
*codepage = 1252; // ANSI CP1252
|
||||||
|
#endif
|
||||||
|
|
||||||
if (lang == 1033)
|
if (lang == 1033)
|
||||||
return _T("English");
|
return _T("English");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue