diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-10-02 14:04:04 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2015-10-02 14:44:35 +0200 |
commit | 2e860abd2b8b3a30f74005450830c34a318b64a3 (patch) | |
tree | 64a6b6fa5f8b591d5a45cd948c90cbedcaca2902 /src/fe-common/core/utf8.h | |
parent | acbe2ecac299d4f6770c60747776cbea290bee3f (diff) | |
download | irssi-2e860abd2b8b3a30f74005450830c34a318b64a3.zip |
Fix the display of utf8 sequences in the gui
term_addstr() had a long-standing fixme that suggested it didn't
take into account the string encoding when calculating the string
length.
The BIG5 code path is untested.
Diffstat (limited to 'src/fe-common/core/utf8.h')
-rw-r--r-- | src/fe-common/core/utf8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/utf8.h b/src/fe-common/core/utf8.h index 3c15dc7d..70b44d7e 100644 --- a/src/fe-common/core/utf8.h +++ b/src/fe-common/core/utf8.h @@ -8,6 +8,8 @@ #define is_big5_hi(hi) (0x81 <= (hi) && (hi) <= 0xFE) #define is_big5(hi,lo) (is_big5_hi(hi) && is_big5_lo(lo)) +int strlen_big5(const unsigned char *str); + /* Returns width for character (0-2). */ int mk_wcwidth(unichar c); |