comparison 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
comparison
equal deleted inserted replaced
931:1cd6d694ac3c 932:fc6aaa223650
4 #include <config.h> 4 #include <config.h>
5 5
6 #ifdef HAVE_WCHAR_H 6 #ifdef HAVE_WCHAR_H
7 # include <wchar.h> 7 # include <wchar.h>
8 # define UNICODE 8 # define UNICODE
9 # define get_char_width(c) (utf8_mode ? wcwidth(get_char(c)) : 1)
9 #else 10 #else
10 # define wcwidth(c) 1 11 # define wcwidth(c) 1
12 # define get_char_width(c) 1
11 #endif 13 #endif
12 14
13 #ifdef HAVE_WCTYPE_H 15 #ifdef HAVE_WCTYPE_H
14 # include <wctype.h> 16 # include <wctype.h>
15 #else 17 #else