poopt: 😆’s length should be 2, not 1.

This commit is contained in:
Emmanuel Gil Peyrot 2018-07-22 17:31:25 +02:00
parent 30547aa81a
commit 33718e56c4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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