1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

macOS: Be explicit about string encodings when logging assertions

This commit is contained in:
reuk 2021-02-18 15:33:27 +00:00
parent 67093bfe10
commit be1e3df4d0
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ void Logger::writeToLog (const String& message)
void JUCE_API JUCE_CALLTYPE logAssertion (const char* const filename, const int lineNum) noexcept
{
String m ("JUCE Assertion failure in ");
m << File::createFileWithoutCheckingPath (filename).getFileName() << ':' << lineNum;
m << File::createFileWithoutCheckingPath (CharPointer_UTF8 (filename)).getFileName() << ':' << lineNum;
#if JUCE_LOG_ASSERTIONS
Logger::writeToLog (m);