Fix #2334 (wrong character length for formatting chars)

This commit is contained in:
mathieui 2013-07-31 23:56:49 +02:00
parent 19135d4a76
commit 890945d037

View file

@ -34,7 +34,7 @@ PyObject *ErrorObject;
static int xwcwidth(wchar_t c) static int xwcwidth(wchar_t c)
{ {
const int res = wcwidth(c); const int res = wcwidth(c);
if (res == -1) if (res == -1 && c != '\x19')
return 1; return 1;
return res; return res;
} }