From 99849d9ecd77fcfc447618c886c77c437a7ba8d0 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 21:08:14 +0800 Subject: [PATCH] Fixed implementation of VariableDeclarationExpression::loadNativeFunction() for Windows target. --- src/n8/ast/expression/VariableDeclarationExpression.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index eded851..9822d85 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -59,6 +59,7 @@ DynamicObject VariableDeclarationExpression::visit(SymbolTable& symbols) { return {}; } #include +#include NativeFunction VariableDeclarationExpression::loadNativeFunction( std::string& libName, std::string& funcName, @@ -108,6 +109,8 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( handle = LoadLibraryA(library.c_str()); SetDllDirectoryW(wfolderPath); + + std::wcout.imbue(std::locale("en_US.UTF-8")); std::cout << "Loading DLLs from: "; std::wcout << wfolderPath; std::cout << std::endl;