mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
macOS: Be explicit about string encodings when logging assertions
This commit is contained in:
parent
67093bfe10
commit
be1e3df4d0
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ File File::getSpecialLocation (const SpecialLocationType type)
|
|||
|
||||
case invokedExecutableFile:
|
||||
if (juce_argv != nullptr && juce_argc > 0)
|
||||
return File::getCurrentWorkingDirectory().getChildFile (String (juce_argv[0]));
|
||||
return File::getCurrentWorkingDirectory().getChildFile (CharPointer_UTF8 (juce_argv[0]));
|
||||
// deliberate fall-through...
|
||||
JUCE_FALLTHROUGH
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue