screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #55138] Bug: UTF-8 characters in hardstatus not work


From: Stefan Assmann
Subject: [screen-devel] [bug #55138] Bug: UTF-8 characters in hardstatus not working
Date: Thu, 23 May 2019 04:38:20 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #18, bug #55138 (project screen):

Part of the problem seems to be that FromUtf8() interprets UTF8 bytes
incorrectly due to a signedness issue.
For example: ยข (U+A2)
This 2-byte UTF8 character gets interpreted as
ffffffc2
ffffffa2
instead of
c2
a2

A dirty hack to demonstrate this would be:

-static int strlen_onscreen(char *c, char *end)
+static int strlen_onscreen(unsigned char *c, unsigned char *end)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55138>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]