Mercurial > ~mikael > mcabber > hg
view mcabber/src/utils.h @ 441:51b8f10cfeb8
Handle g_locale_from_utf8() failures
The biggest issue was that when a message couldn't be utf8-decoded,
the user was not notified of the failure, and sometimes didn't even
know a message had been sent to him...
I don't know if we can ask for a partial decoding, so the message isn't
displayed but an error message is now displayed.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 21 Sep 2005 22:05:43 +0200 |
parents | 2f9852610cf4 |
children | dfd9c62b3a39 |
line wrap: on
line source
#ifndef __UTILS_H__ #define __UTILS_H__ 1 void ut_InitDebug(unsigned int level, const char *file); void ut_WriteLog(unsigned int flag, const char *data); int checkset_perm(const char *name, unsigned int setmode); int to_iso8601(char *dststr, time_t timestamp); time_t from_iso8601(const char *timestamp, int utc); inline void safe_usleep(unsigned int usec); /* Only for delays < 1s */ #endif