updated to the new pikotools api: changed utf8 functions PascalCase to snake_case

This commit is contained in:
2021-05-21 00:41:27 +02:00
parent 8c523ce8b9
commit 8bb585d97d
25 changed files with 99 additions and 99 deletions

View File

@@ -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;