Mercurial > ~mikael > mcabber > hg
diff mcabber/src/utf8.h @ 932:fc6aaa223650
Fix a few problems with non-UTF-8 locales
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 08 Jul 2006 09:43:18 +0200 |
parents | a75f7a13df7b |
children | a09bf67d1dfb |
line wrap: on
line diff
--- a/mcabber/src/utf8.h Sat Jul 08 09:43:01 2006 +0200 +++ b/mcabber/src/utf8.h Sat Jul 08 09:43:18 2006 +0200 @@ -6,8 +6,10 @@ #ifdef HAVE_WCHAR_H # include <wchar.h> # define UNICODE +# define get_char_width(c) (utf8_mode ? wcwidth(get_char(c)) : 1) #else # define wcwidth(c) 1 +# define get_char_width(c) 1 #endif #ifdef HAVE_WCTYPE_H