updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2018, Tomasz Sowa
|
||||
* Copyright (c) 2008-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -267,7 +267,7 @@ void NotifyThread::SendMail(const std::wstring & email, const std::wstring & mes
|
||||
}
|
||||
|
||||
sendmail_command = "sendmail ";
|
||||
pt::WideToUTF8(email, sendmail_command, false);
|
||||
pt::wide_to_utf8(email, sendmail_command, false);
|
||||
FILE * sendmail = popen(sendmail_command.c_str(), "w");
|
||||
|
||||
if( !sendmail )
|
||||
@@ -297,7 +297,7 @@ size_t len;
|
||||
}
|
||||
else
|
||||
{
|
||||
len = pt::IntToUTF8(int(message[i]), buf, sizeof(buf) / sizeof(char));
|
||||
len = pt::int_to_utf8(int(message[i]), buf, sizeof(buf) / sizeof(char));
|
||||
|
||||
for(size_t a=0 ; a<len ; ++a)
|
||||
fputc(buf[a], sendmail);
|
||||
|
Reference in New Issue
Block a user