From c6cd2f1f164baac1414f2cf658566de146b10552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 23 Jul 2022 18:59:37 +0200 Subject: Fix display of Unicode text. Turns out that SWI-Prolog's wide string functions, which I started using in 03fe361, do not convert between narrow Prolog atoms and wide C strings, as I mistakenly thought. Instead, they work with wide Prolog atoms. In hindsight, it is not surprising. --- c/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'c/common.h') diff --git a/c/common.h b/c/common.h index 5fe6d62..fb21e6f 100644 --- a/c/common.h +++ b/c/common.h @@ -11,6 +11,7 @@ #define WA "A" #endif +template std::basic_string BstrFromSz(const char* sz, int iCp = CP_UTF8); int EBMessageBox(const TCHAR* tszText, const TCHAR* tszCaption, unsigned uType); struct Win32Error : public std::exception -- cgit v1.2.3