From bce7fd23c7c35a63fe4a5006c37f8441bda1f562 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 27 Jul 2019 15:21:11 -1000 Subject: [PATCH] Windows build fixes --- specter/lib/FileBrowser.cpp | 2 +- specter/lib/FontCache.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specter/lib/FileBrowser.cpp b/specter/lib/FileBrowser.cpp index 65d8aebdb..ceb56d8ac 100644 --- a/specter/lib/FileBrowser.cpp +++ b/specter/lib/FileBrowser.cpp @@ -200,7 +200,7 @@ void FileBrowser::okActivated(bool viaButton) { if (!err && !S_ISDIR(theStat.st_mode)) { m_confirmWindow.reset( new MessageWindow(rootView().viewRes(), *this, MessageWindow::Type::ConfirmOkCancel, - vm.translate(path), + vm.translate(hecl::SystemUTF8Conv(path)), [&, path](bool ok) { if (ok) { m_returnFunc(true, path); diff --git a/specter/lib/FontCache.cpp b/specter/lib/FontCache.cpp index a6806f767..ae49ba4f2 100644 --- a/specter/lib/FontCache.cpp +++ b/specter/lib/FontCache.cpp @@ -637,7 +637,7 @@ FontTag FontCache::prepCustomFont(std::string_view name, FT_Face face, FCharFilt /* Nada, build and cache now */ athena::io::FileWriter w(cachePath); if (w.hasError()) - Log.report(logvisor::Fatal, fmt("unable to open '{}' for writing"), cachePath); + Log.report(logvisor::Fatal, fmt(_SYS_STR("unable to open '{}' for writing")), cachePath); w.writeUint32Big('FONT'); m_cachedAtlases.emplace(tag, std::make_unique(face, dpi, subpixel, filter, w)); return tag;