Mercurial > pidgin.yaz
comparison src/gaim.h @ 3370:eb7b398051f2
[gaim-migrate @ 3389]
Is ISO-8859 a good default charset to use if one doesn't have nl_langinfo?
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 02 Aug 2002 05:19:52 +0000 |
parents | 3b00d97d59aa |
children | 412d1035d666 |
comparison
equal
deleted
inserted
replaced
3369:ae9894ad81a0 | 3370:eb7b398051f2 |
---|---|
431 extern char *add_cr(char *); | 431 extern char *add_cr(char *); |
432 extern void strip_linefeed(char *); | 432 extern void strip_linefeed(char *); |
433 extern time_t get_time(int, int, int, int, int, int); | 433 extern time_t get_time(int, int, int, int, int, int); |
434 extern FILE *gaim_mkstemp(gchar **); | 434 extern FILE *gaim_mkstemp(gchar **); |
435 extern char *convert_string(char *, const char *, const char *); | 435 extern char *convert_string(char *, const char *, const char *); |
436 | |
437 #ifdef HAVE_LANGINFO_CODESET | |
436 #define utf8_to_str(in) convert_string(in, nl_langinfo(CODESET), "UTF-8"); | 438 #define utf8_to_str(in) convert_string(in, nl_langinfo(CODESET), "UTF-8"); |
437 #define str_to_utf8(in) convert_string(in, "UTF-8", nl_langinfo(CODESET)); | 439 #define str_to_utf8(in) convert_string(in, "UTF-8", nl_langinfo(CODESET)); |
440 #else | |
441 #define utf8_to_str(in) convert_string(in, "ISO-8859-1", "UTF-8"); | |
442 #define str_to_utf8(in) convert_string(in, "UTF-8", "ISO-8859-1"); | |
443 #endif | |
438 | 444 |
439 /*------------------------------------------------------------------------*/ | 445 /*------------------------------------------------------------------------*/ |
440 /* Multi-Entry dialog and vCard dialog support */ | 446 /* Multi-Entry dialog and vCard dialog support */ |
441 /*------------------------------------------------------------------------*/ | 447 /*------------------------------------------------------------------------*/ |
442 | 448 |