From 41a3f0da15005fa1851715b6f7bc4565a28c7bd8 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 14 Feb 2010 19:21:04 +0000 Subject: =?UTF-8?q?correction=20utf-8=20quand=20la=20ligne=20est=20trop=20?= =?UTF-8?q?longue=20et=20qu'on=20s'y=20d=C3=A9place?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.py b/src/window.py index fd98aec5..52865d09 100644 --- a/src/window.py +++ b/src/window.py @@ -322,7 +322,7 @@ class Input(Win): if x == 0: txt = self.text[self.pos:self.pos+self.width-1] self.clear_text() - self.win.addstr(txt) + self.win.addstr(txt.encode('utf-8')) self.win.move(y, 0) else: self.win.move(y, x-1) @@ -336,7 +336,7 @@ class Input(Win): if x == self.width-1: txt = self.text[self.pos-(self.width-1):self.pos] self.clear_text() - self.win.addstr(txt) + self.win.addstr(txt.encode('utf-8')) self.win.move(y, self.width-1) else: self.win.move(y, x+1) -- cgit v1.2.3