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. --- README | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'README') diff --git a/README b/README index ebe22ef..c8b3f5c 100644 --- a/README +++ b/README @@ -69,12 +69,13 @@ Following is a summary of some coding conventions used in the project. - w = WORD, WPARAM - dw = DWORD - lvi = LVITEM - - sz = unmangaged, zero-terminated string (char *) - - wsz = ... wide string (wchar_t *) - - tsz = ... tstring (TCHAR *) - - str = ... managed string (std::string) + - sz = unmanaged, zero-terminated narrow string (char*) + - wsz = ... wide string (wchar_t*) + - tsz = ... tstring (TCHAR*) + - str = managed narrow string (std::string) - wstr = ... (std::wstring) - tstr = ... (std::basic_string) + - bstr = ... (std::basic_string of any type T) The list above is non-exhaustive. Variables whose type is unknown (in templates) do not need prefixes. Some very common self-explanatory -- cgit v1.2.3