Blob Blame History Raw
From b41f9e84fb87cebcdca1c07c0c3417e819789cb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Wed, 21 Dec 2016 13:05:11 +0100
Subject: [PATCH] Fix character classes with ranges for UTF-8

---
 joe/regex.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/joe/regex.c b/joe/regex.c
index adf870f..170319a 100644
--- a/joe/regex.c
+++ b/joe/regex.c
@@ -366,8 +366,6 @@ static int do_parse_conventional(struct regcomp *g, int prec, int fold)
 					++g->ptr;
 					--g->l;
 					last = escape(g->cmap->type, &g->ptr, &g->l, &cat);
-					if (last != -256)
-						last = from_uni(g->cmap, last);
 				} else {
 					last = first;
 				}
@@ -590,8 +588,6 @@ static int do_parse(struct regcomp *g, int prec, int fold)
 					++g->ptr;
 					--g->l;
 					last = escape(g->cmap->type, &g->ptr, &g->l, &cat);
-					if (last != -256)
-						last = from_uni(g->cmap, last);
 				} else {
 					last = first;
 				}
-- 
2.7.4