Suppress unnecessary IUTF8 warning.

This commit is contained in:
Keith Winstein
2012-02-02 17:54:25 -05:00
parent 32a2fa8261
commit e20d1169d1
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ void STMClient::init( void )
/* Put terminal driver in raw mode */
raw_termios = saved_termios;
if ( !(raw_termios.c_iflag & IUTF8) ) {
fprintf( stderr, "Warning: Locale is UTF-8 but termios IUTF8 flag not set. Setting IUTF8 flag.\n" );
/* SSH should also convey IUTF8 across connection. */
// fprintf( stderr, "Warning: Locale is UTF-8 but termios IUTF8 flag not set. Setting IUTF8 flag.\n" );
raw_termios.c_iflag |= IUTF8;
}