updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
This commit is contained in:
@@ -120,7 +120,7 @@ void SavePidFile(Log & log)
|
||||
if( !app.config.pid_file.empty() )
|
||||
{
|
||||
std::string file_name;
|
||||
pt::WideToUTF8(app.config.pid_file, file_name);
|
||||
pt::wide_to_utf8(app.config.pid_file, file_name);
|
||||
std::ofstream file(file_name);
|
||||
|
||||
if( !file )
|
||||
@@ -142,7 +142,7 @@ void RemovePidFile()
|
||||
if( !app.config.pid_file.empty() )
|
||||
{
|
||||
std::string file_name;
|
||||
pt::WideToUTF8(app.config.pid_file, file_name);
|
||||
pt::wide_to_utf8(app.config.pid_file, file_name);
|
||||
unlink(file_name.c_str());
|
||||
}
|
||||
}
|
||||
@@ -166,7 +166,7 @@ using Winix::app;
|
||||
|
||||
app.system.system_start = time(0);
|
||||
|
||||
if( !pt::UTF8ToWide(argc[1], app.config.config_file) )
|
||||
if( !pt::utf8_to_wide(argc[1], app.config.config_file) )
|
||||
{
|
||||
std::wcout << "An incorrect UTF-8 path of the config file" << std::endl;
|
||||
return 6;
|
||||
|
Reference in New Issue
Block a user