From 49c23f1293b5af4d9135d00554364001d9d2aeeb Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 22 Sep 2016 08:37:36 +0200 Subject: [PATCH] - shellexec: add paragraph symbol for CP850; add comment to explain --- text.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/text.c b/text.c index 3aa8b1b..36364af 100644 --- a/text.c +++ b/text.c @@ -106,7 +106,13 @@ void TranslateString(char *src, size_t size) *tptr++ = 0xC3; *tptr++ = su[i]; fptr++; - } else if (*fptr == '§') { + } else if (*fptr == '§' /* 1252, 28591 */ || *fptr == 'õ' /* 850 */) { + /* + Take care about the line above! + + Workaround for different codepages in user's conf + Convert paragraph symbol to utf-8 + */ *tptr++ = 0xC2; *tptr++ = 0xa7; fptr++; -- 2.39.5