From 33718e56c460ca85c1f0e18259879aafeea716f7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 22 Jul 2018 17:31:25 +0200 Subject: =?UTF-8?q?poopt:=20=F0=9F=98=86=E2=80=99s=20length=20should=20be?= =?UTF-8?q?=202,=20not=201.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/poopt.py | 2 +- poezio/pooptmodule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/poopt.py b/poezio/poopt.py index b9243686..57bd28c8 100644 --- a/poezio/poopt.py +++ b/poezio/poopt.py @@ -25,7 +25,7 @@ libc = ffi.dlopen(None) # Just checking if the return value is -1. In some (all?) implementations, -# wcwidth("😆") returns -1 while it should return 1. In these cases, we +# wcwidth("😆") returns -1 while it should return 2. In these cases, we # return 1 instead because this is by far the most probable real value. # Since the string is received from python, and the unicode character is # extracted with mbrtowc(), and supposing these two compononents are not diff --git a/poezio/pooptmodule.c b/poezio/pooptmodule.c index b1dc56ed..427ac883 100644 --- a/poezio/pooptmodule.c +++ b/poezio/pooptmodule.c @@ -23,7 +23,7 @@ PyObject *ErrorObject; /** Just checking if the return value is -1. In some (all?) implementations, - wcwidth("😆") returns -1 while it should return 1. In these cases, we + wcwidth("😆") returns -1 while it should return 2. In these cases, we return 1 instead because this is by far the most probable real value. Since the string is received from python, and the unicode character is extracted with mbrtowc(), and supposing these two compononents are not -- cgit v1.2.3