nixpkgs/pkgs/by-name/x2/x2t/common-pole-c20.patch
2025-04-03 20:08:48 +02:00

36 lines
1.4 KiB
Diff

diff --git a/Common/3dParty/pole/pole.cpp b/Common/3dParty/pole/pole.cpp
index fbbd2a4b3d..d229e9cf31 100644
--- a/Common/3dParty/pole/pole.cpp
+++ b/Common/3dParty/pole/pole.cpp
@@ -1283,19 +1283,19 @@ void DirTree::debug()
DirEntry* e = entry( i );
if( !e ) continue;
std::cout << i << ": ";
- if( !e->valid ) std::cout << L"INVALID ";
+ if( !e->valid ) std::wcout << L"INVALID ";
std::wcout << e->name << L" ";
- if( e->dir ) std::cout << L"(Dir) ";
- else std::cout << L"(File) ";
- std::cout << e->size << L" ";
- std::cout << L"s:" << e->start << L" ";
- std::cout << L"(";
- if( e->child == End ) std::cout << L"-"; else std::cout << e->child;
+ if( e->dir ) std::wcout << L"(Dir) ";
+ else std::wcout << L"(File) ";
+ std::wcout << e->size << L" ";
+ std::wcout << L"s:" << e->start << L" ";
+ std::wcout << L"(";
+ if( e->child == End ) std::wcout << L"-"; else std::cout << e->child;
std::cout << " ";
- if( e->prev == End ) std::cout << L"-"; else std::cout << e->prev;
- std::cout << L":";
- if( e->next == End ) std::cout << L"-"; else std::cout << e->next;
- std::cout << L")";
+ if( e->prev == End ) std::wcout << L"-"; else std::cout << e->prev;
+ std::wcout << L":";
+ if( e->next == End ) std::wcout << L"-"; else std::cout << e->next;
+ std::wcout << L")";
std::cout << std::endl;
}
}