From d7ca5a4d017c930c211fc09deafd716daa7bb0c5 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 19 Jul 2026 17:32:43 +0800 Subject: [PATCH] use u8 helper --- otherarch/sdcpp/sdtype_adapter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 9e6a5a1bd..06cd15191 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -19,6 +19,7 @@ #include "stable-diffusion.h" #include "src/kcpp_sd_extensions.h" +#include "src/core/util.h" #include "ggml-backend.h" using namespace kcpp_sd; @@ -191,7 +192,7 @@ static std::string read_str_from_disk(std::string filepath) std::string output; std::cout << "\nTry read vocab from " << filepath << std::endl; - std::ifstream file(filepath); // text mode + std::ifstream file(sd_get_u8path(filepath)); // text mode if (!file) { throw std::runtime_error("Failed to open file: " + filepath); } @@ -274,7 +275,7 @@ std::string load_gpt_oss_vocab_json() bool sdtype_load_model(const sd_load_model_inputs inputs) { sd_is_quiet = inputs.quiet; set_sd_quiet(sd_is_quiet); - executable_path = inputs.executable_path; + executable_path = sd_get_u8path(inputs.executable_path); std::string taesdpath = ""; LoraMap lora_map; for(int i=0;i