From d73e8c603c916044d790f947760f0d4c0e93dcbc Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Fri, 22 Mar 2024 12:29:46 +0800 Subject: [PATCH] fix: only on win32 do utf8 --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 649f888..96e9d1a 100644 --- a/main.cpp +++ b/main.cpp @@ -60,8 +60,9 @@ void processFilesInFolder(const fs::path &folderPath) int main(int argc, char **argv) { +#if defined(_WIN32) win32_utf8argv(&argc, &argv); - +#endif if (argc <= 1) { displayHelp();