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:
@@ -52,7 +52,7 @@ static const char vim_wymiframe[] =
|
||||
|
||||
Vim::Vim()
|
||||
{
|
||||
fun.url = "vim";
|
||||
fun.url = L"vim";
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ void Vim::Init()
|
||||
{
|
||||
Item temp;
|
||||
|
||||
if( db->GetItem(var->id, "wymiframe.html", temp) == WINIX_ERR_NO_ITEM )
|
||||
if( db->GetItem(var->id, L"wymiframe.html", temp) == WINIX_ERR_NO_ITEM )
|
||||
{
|
||||
Item v;
|
||||
|
||||
@@ -72,11 +72,11 @@ void Vim::Init()
|
||||
v.user_id = -1;
|
||||
v.group_id = -1;
|
||||
v.privileges = 0755;
|
||||
v.subject = "wymiframe.html";
|
||||
v.url = "wymiframe.html";
|
||||
v.subject = L"wymiframe.html";
|
||||
v.url = L"wymiframe.html";
|
||||
v.type = Item::file;
|
||||
v.content = vim_wymiframe;
|
||||
v.content_type = Item::ct_raw;
|
||||
AssignString(vim_wymiframe, v.content);
|
||||
|
||||
system->AddFile(v, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user