From 774e50dc19d97bebcea9cc409a22658c5b385749 Mon Sep 17 00:00:00 2001 From: termie Date: Mon, 9 Apr 2012 15:46:21 -0700 Subject: [PATCH] Allow lowercase "utf-8" in charset for OS X iTerm. Closes #104 github pull request. --- src/util/locale_utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/locale_utils.cc b/src/util/locale_utils.cc index 5c758dc..307ad49 100644 --- a/src/util/locale_utils.cc +++ b/src/util/locale_utils.cc @@ -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 ); }