Move some locale handling into one place

This commit is contained in:
Keegan McAllister
2012-03-14 07:10:54 -04:00
committed by Keith Winstein
parent 705dcb6483
commit 7ed5174aa7
11 changed files with 90 additions and 55 deletions
+2 -4
View File
@@ -24,6 +24,7 @@
#include "stmclient.h"
#include "crypto.h"
#include "locale_utils.h"
/* these need to be included last because of conflicting defines */
#include <curses.h>
@@ -106,10 +107,7 @@ int main( int argc, char *argv[] )
}
/* Adopt native locale */
if ( NULL == setlocale( LC_ALL, "" ) ) {
perror( "setlocale" );
exit( 1 );
}
set_native_locale();
try {
STMClient client( ip, port, key, predict_mode );