diff --git a/gtk/main.c b/gtk/main.c index f066404c4..354b8bfe0 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -363,6 +363,7 @@ main( int argc, char ** argv ) cbdata->details2tor = g_hash_table_new( g_direct_hash, g_direct_equal ); /* bind the gettext domain */ + setlocale( LC_ALL, "" ); bindtextdomain( domain, TRANSMISSIONLOCALEDIR ); bind_textdomain_codeset( domain, "UTF-8" ); textdomain( domain ); diff --git a/libtransmission/utils.h b/libtransmission/utils.h index 94839532c..81b229f2d 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -83,7 +83,7 @@ #if !defined(_) #if defined(SYS_DARWIN) #define _(a) (a) -#elif HAVE_LIBINTL +#elif defined(HAVE_LIBINTL_H) #include #define _(a) gettext (a) #else