]> git.webhop.me Git - shellexec.git/commitdiff
- shellexec: add paragraph symbol for CP850; add comment to explain
authorsvenhoefer <svenhoefer@svenhoefer.com>
Thu, 22 Sep 2016 06:37:36 +0000 (08:37 +0200)
committersvenhoefer <svenhoefer@svenhoefer.com>
Thu, 22 Sep 2016 06:37:36 +0000 (08:37 +0200)
text.c

diff --git a/text.c b/text.c
index 3aa8b1bf9285a22562018c8b344c1c51a4f30dad..36364af8ce3462c9d1fc3e0852ea5962e79e32a2 100644 (file)
--- 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++;