From c9ea02e40a13316619d7c20ad3b3a6c666941d88 Mon Sep 17 00:00:00 2001
From: kkz <zhaoshuang@uniontech.com>
Date: Wed, 26 Jul 2023 17:28:08 +0800
Subject: [PATCH] allow non-UTF8 locale

---
 src/server.cc | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/server.cc b/src/server.cc
index 199df22..cbbb711 100644
--- a/src/server.cc
+++ b/src/server.cc
@@ -123,11 +123,6 @@ init_server (int argc,

   g_unsetenv ("CHARSET");
   g_unsetenv ("OUTPUT_CHARSET");
-  const char *charset;
-  if (!g_get_charset (&charset)) {
-    g_printerr ("Non UTF-8 locale (%s) is not supported!\n", charset);
-    return _EXIT_FAILURE_NO_UTF8;
-  }

   /* Sanitise environment */
   g_unsetenv ("DBUS_STARTER_BUS_TYPE");
-- 
2.27.0

