Unicode fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6216 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
615ce82030
commit
382b2fa282
11 changed files with 150 additions and 49 deletions
|
@ -57,9 +57,15 @@ void Plugins::FindCommands(const tstring &path, bool displayInfo)
|
|||
}
|
||||
}
|
||||
|
||||
struct NSISException : public std::runtime_error
|
||||
// VC6 cannot handle NSISException(const tstring& msg) : std::runtime_error(string(TtoCString(msg))) {}
|
||||
struct NSISExceptionInner : public std::runtime_error
|
||||
{
|
||||
NSISException(const tstring& msg) : std::runtime_error(string(TtoCString(msg))) {}
|
||||
NSISExceptionInner(const char* msg) : std::runtime_error(string(msg)) {} // Unicode
|
||||
NSISExceptionInner(const string&msg) : std::runtime_error(msg) {} // Ansi
|
||||
};
|
||||
struct NSISException : public NSISExceptionInner
|
||||
{
|
||||
NSISException(const tstring& msg) : NSISExceptionInner(TtoCString(msg)) {}
|
||||
};
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue