diff --git a/glfw/backend_utils.c b/glfw/backend_utils.c index 54065d30b..55ea026d6 100644 --- a/glfw/backend_utils.c +++ b/glfw/backend_utils.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include diff --git a/kitty_tests/glfw.py b/kitty_tests/glfw.py index 28bb76eca..4e3bb7ddc 100644 --- a/kitty_tests/glfw.py +++ b/kitty_tests/glfw.py @@ -82,3 +82,5 @@ class TestGLFW(BaseTest): test('>แบฟ<') test('>๐ˆ<') test('โˆฎ Eโ‹…da = Q, n โ†’ โˆž, ๐ˆโˆ‘ f(i) = โˆ g(i)') + self.ae(utf_8_strndup(b'\xf0\x9f\x98\xb8', 3).value, b'') + self.ae(utf_8_strndup(b'\xc3\xb6\xf0\x9f\x98\xb8', 4).value, b'\xc3\xb6')