* gmime-test.c: set up locale
This commit is contained in:
@ -28,8 +28,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
gchar*
|
static gchar*
|
||||||
get_recip (GMimeMessage *msg, GMimeRecipientType rtype)
|
get_recip (GMimeMessage *msg, GMimeRecipientType rtype)
|
||||||
{
|
{
|
||||||
char *recep;
|
char *recep;
|
||||||
@ -54,8 +55,7 @@ get_refs_str (GMimeMessage *msg)
|
|||||||
GMimeReferences *mime_refs;
|
GMimeReferences *mime_refs;
|
||||||
gchar *rv;
|
gchar *rv;
|
||||||
|
|
||||||
str = g_mime_object_get_header (GMIME_OBJECT(msg),
|
str = g_mime_object_get_header (GMIME_OBJECT(msg), "References");
|
||||||
"References");
|
|
||||||
if (!str)
|
if (!str)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@ -198,6 +198,8 @@ main (int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
|
g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
|
||||||
|
|
||||||
rv = test_file (argv[1]);
|
rv = test_file (argv[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user