ead47067ec
This is done in order to avoid symbol collisions with libsolv library, namely the map_* symbols collide. Resolves: rhbz#1201897
31 lines
796 B
Diff
31 lines
796 B
Diff
From 8c0f52589d106e5ac32d7868d7b51d3dfab6c0a5 Mon Sep 17 00:00:00 2001
|
|
From: Boris Ranto <branto@redhat.com>
|
|
Date: Wed, 25 Mar 2015 17:33:00 +0100
|
|
Subject: [PATCH] Ignore non-ASCII characters only if charset is not UTF-8
|
|
|
|
---
|
|
src/eln.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/eln.c b/src/eln.c
|
|
index 5bcfb4f..6023891 100644
|
|
--- a/src/eln.c
|
|
+++ b/src/eln.c
|
|
@@ -76,9 +76,11 @@ el_gets(EditLine *el, int *nread)
|
|
{
|
|
const wchar_t *tmp;
|
|
|
|
- el->el_flags |= IGNORE_EXTCHARS;
|
|
+ if (!(el->el_flags & CHARSET_IS_UTF8))
|
|
+ el->el_flags |= IGNORE_EXTCHARS;
|
|
tmp = el_wgets(el, nread);
|
|
- el->el_flags &= ~IGNORE_EXTCHARS;
|
|
+ if (!(el->el_flags & CHARSET_IS_UTF8))
|
|
+ el->el_flags &= ~IGNORE_EXTCHARS;
|
|
return ct_encode_string(tmp, &el->el_lgcyconv);
|
|
}
|
|
|
|
--
|
|
2.1.0
|
|
|