From 9b0e3aeb62956e93c8a10f1ef2a35b528620206d Mon Sep 17 00:00:00 2001 From: wizou Date: Mon, 19 Apr 2010 10:05:49 +0000 Subject: [PATCH] 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 --- Source/lang.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/lang.cpp b/Source/lang.cpp index f2530721..1994741b 100644 --- a/Source/lang.cpp +++ b/Source/lang.cpp @@ -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");