Allow lowercase "utf-8" in charset for OS X iTerm.

Closes #104 github pull request.
This commit is contained in:
termie
2012-04-09 15:46:21 -07:00
committed by Keith Winstein
parent 9cec566cd1
commit 774e50dc19
+2 -1
View File
@@ -31,7 +31,8 @@
void assert_utf8_locale( void ) {
/* Verify locale calls for UTF-8 */
if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 ) {
if ( strcmp( nl_langinfo( CODESET ), "UTF-8" ) != 0 &&
strcmp( nl_langinfo( CODESET ), "utf-8" ) != 0 ) {
fprintf( stderr, "mosh requires a UTF-8 locale.\n" );
exit( 1 );
}