packages: add mosh
[packages.git] / net / mosh / patches / disable-utf8-check.patch
diff --git a/net/mosh/patches/disable-utf8-check.patch b/net/mosh/patches/disable-utf8-check.patch
new file mode 100644 (file)
index 0000000..88525fb
--- /dev/null
@@ -0,0 +1,17 @@
+--- a/src/util/locale_utils.cc
++++ b/src/util/locale_utils.cc
+@@ -86,10 +86,10 @@ const char *locale_charset( void )
+ bool is_utf8_locale( void ) {
+   /* Verify locale calls for UTF-8 */
+-  if ( strcmp( locale_charset(), "UTF-8" ) != 0 &&
+-       strcmp( locale_charset(), "utf-8" ) != 0 ) {
+-    return 0;
+-  }
++  //if ( strcmp( locale_charset(), "UTF-8" ) != 0 &&
++  //    strcmp( locale_charset(), "utf-8" ) != 0 ) {
++  // return 0;
++  //}
+   return 1;
+ }