Mercurial > ~mikael > mcabber > hg
view mcabber/src/histolog.h @ 954:27a7b2f986f5
Fix a freeze with UTF-8 locales
Some commands cause an infinite loop when using an utf-8 locale.
It occurs when a screen refresh is done and there are trailing spaces in the
command line. This patch should fix it.
(Problem reported by "AL" in the mcabber conference room)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 02 Sep 2006 10:01:25 +0200 |
parents | fed6d1e4d7a9 |
children | c0d44a9a99bc |
line wrap: on
line source
#ifndef __HISTOLOG_H__ #define __HISTOLOG_H__ 1 #include <glib.h> #include "jabglue.h" void hlog_enable(guint enable, const char *root_dir, guint loadfile); void hlog_read_history(const char *jid, GList **p_buddyhbuf, guint width); inline void hlog_write_message(const char *jid, time_t timestamp, int sent, const char *msg); inline void hlog_write_status(const char *jid, time_t timestamp, enum imstatus status, const char *status_msg); #endif /* __HISTOLOG_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */