Skip to content

Commit e94a316

Browse files
committed
WIP on macOS
1 parent 656dc83 commit e94a316

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

BKImage.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,11 @@ void CBKImage::PrintItem(BKDirDataItem& fr, const int level, std::wstring dirpat
424424
std::wcout << std::setw(strSpecific.length()) << std::left << strSpec;
425425
}
426426

427-
if (m_bCalcSHA1)
427+
std::wcout << L" | ";
428+
if (m_bCalcSHA1 && (fr.nAttr & FR_ATTR::DELETED) == 0)
428429
{
429430
std::wstring strHash = m_pFloppyImage->CalcFileSHA1(&fr);
430-
std::wcout << L" | " << strHash;
431+
std::wcout << strHash;
431432
}
432433
}
433434
else if (m_nListingFormat == LISTING_FORMAT::RAR_LIKE)

bkdecmd.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33

44
#include "pch.h"
5+
#include <clocale>
56

67
#include "BKParseImage.h"
78
#include "BKImage.h"
@@ -209,6 +210,7 @@ int main(int argc, char* argv[])
209210
{
210211
// Console output mode
211212
std::setlocale(LC_ALL, "");
213+
std::wcout.imbue(std::locale(""));
212214

213215
std::vector<std::wstring> wargs;
214216
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;

0 commit comments

Comments
 (0)