From: svenhoefer Date: Thu, 22 Sep 2016 06:37:36 +0000 (+0200) Subject: - shellexec: add paragraph symbol for CP850; add comment to explain X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=49c23f1293b5af4d9135d00554364001d9d2aeeb;p=shellexec.git - shellexec: add paragraph symbol for CP850; add comment to explain --- 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++;