* gmime-test.c: set up locale

This commit is contained in:
djcb 2012-05-17 10:57:40 +03:00
parent 560eb77f69
commit ca87649efd
1 changed files with 5 additions and 3 deletions

View File

@ -28,8 +28,9 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <locale.h>
gchar*
static gchar*
get_recip (GMimeMessage *msg, GMimeRecipientType rtype)
{
char *recep;
@ -54,8 +55,7 @@ get_refs_str (GMimeMessage *msg)
GMimeReferences *mime_refs;
gchar *rv;
str = g_mime_object_get_header (GMIME_OBJECT(msg),
"References");
str = g_mime_object_get_header (GMIME_OBJECT(msg), "References");
if (!str)
return NULL;
@ -198,6 +198,8 @@ main (int argc, char *argv[])
return 1;
}
setlocale (LC_ALL, "");
g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
rv = test_file (argv[1]);