added support for UTF-8
now the UTF-8 is a default charset git-svn-id: svn://ttmath.org/publicrep/winix/trunk@677 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -15,21 +15,21 @@
|
||||
#include <string>
|
||||
#include "ezc.h"
|
||||
#include "core/mount.h"
|
||||
#include "core/locale.h"
|
||||
#include "core/config.h"
|
||||
#include "core/textstream.h"
|
||||
#include "templates/misc.h"
|
||||
|
||||
|
||||
|
||||
struct NotifyMsg
|
||||
{
|
||||
std::string email;
|
||||
std::wstring email;
|
||||
int notify_code;
|
||||
int current_mount_type;
|
||||
Locale::Lang lang;
|
||||
std::string doc_base_url;
|
||||
std::string item_dir;
|
||||
std::string item_link;
|
||||
std::wstring doc_base_url;
|
||||
std::wstring item_dir;
|
||||
std::wstring item_link;
|
||||
};
|
||||
|
||||
|
||||
@@ -39,8 +39,7 @@ namespace TemplatesNotifyFunctions
|
||||
extern int mount_type_thread;
|
||||
extern int mount_type_ticket;
|
||||
|
||||
|
||||
using Ezc::Info;
|
||||
using TemplatesFunctions::Info;
|
||||
|
||||
enum Pat {
|
||||
pat_email_notify = 0, // first should be zero
|
||||
@@ -85,7 +84,7 @@ public:
|
||||
void CreateFunctions();
|
||||
void Generate(Locale::Lang lang);
|
||||
|
||||
std::ostringstream notify_str;
|
||||
TextStream<std::wstring> notify_str;
|
||||
|
||||
private:
|
||||
|
||||
@@ -93,7 +92,7 @@ private:
|
||||
void Read(TemplatesNotifyFunctions::Pat pat, const char * file);
|
||||
void ClearPatterns();
|
||||
|
||||
std::string temp;
|
||||
std::wstring temp;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user