From 890945d03713a6719e87aac43c86e6682dc00a07 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 31 Jul 2013 23:56:49 +0200 Subject: [PATCH] Fix #2334 (wrong character length for formatting chars) --- src/pooptmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pooptmodule.c b/src/pooptmodule.c index 83b8bba8..4dab1088 100644 --- a/src/pooptmodule.c +++ b/src/pooptmodule.c @@ -34,7 +34,7 @@ PyObject *ErrorObject; static int xwcwidth(wchar_t c) { const int res = wcwidth(c); - if (res == -1) + if (res == -1 && c != '\x19') return 1; return res; }