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:
2010-11-21 00:19:17 +00:00
parent f1f0fa34cb
commit 8e72a820dd
153 changed files with 4270 additions and 2784 deletions

View File

@@ -11,6 +11,7 @@
#include <errno.h>
#include "rm.h"
#include "core/plugin.h"
#include "core/misc.h"
#include "templates/templates.h"
@@ -20,7 +21,7 @@ namespace Fun
Rm::Rm()
{
fun.url = "rm";
fun.url = L"rm";
}
@@ -151,7 +152,7 @@ void Rm::RemoveDir()
if( request->param_tab.empty() )
request->status = WINIX_ERR_PERMISSION_DENIED; // use parameter "r" for removing a directory
else
if( request->IsParam("r") )
if( request->IsParam(L"r") )
RemoveAllDirs();
else
request->status = WINIX_ERR_UNKNOWN_PARAM;
@@ -167,7 +168,7 @@ void Rm::RemoveAuth(Item & item)
return;
}
if( remove(item.auth_path.c_str()) == 0 )
if( ::RemoveFile(item.auth_path) )
{
log << log1 << "Content: removed static file: " << item.auth_path << logend;
item.auth_path.clear();
@@ -230,7 +231,7 @@ void Rm::RemoveFile()
void Rm::MakeGet()
{
if( request->IsParam("confirm") )
if( request->IsParam(L"confirm") )
return; // show confirmation dialog
if( request->is_item )