6de84d
From a18f091c6c090b93cd816f8cd5be763b6e238632 Mon Sep 17 00:00:00 2001
6de84d
From: Philip Withnall <withnall@endlessm.com>
6de84d
Date: Fri, 7 Feb 2020 17:10:23 +0000
6de84d
Subject: [PATCH] libcharset: Drop a redundant environment variable
6de84d
6de84d
It was used for running tests when we built with autotools, but is no
6de84d
longer used in the Meson build system. If we need something similar in
6de84d
future, it should be done by adding internal API to override the
6de84d
directory on a per-call basis, rather than loading a path from a shared
6de84d
global table every time.
6de84d
6de84d
Signed-off-by: Philip Withnall <withnall@endlessm.com>
6de84d
6de84d
Helps: #1919
6de84d
---
6de84d
 glib/libcharset/localcharset.c | 6 +-----
6de84d
 1 file changed, 1 insertion(+), 5 deletions(-)
6de84d
6de84d
diff --git a/glib/libcharset/localcharset.c b/glib/libcharset/localcharset.c
6de84d
index 0c4d544be..ab3a2678d 100644
6de84d
--- a/glib/libcharset/localcharset.c
6de84d
+++ b/glib/libcharset/localcharset.c
6de84d
@@ -117,11 +117,7 @@ _g_locale_get_charset_aliases (void)
6de84d
       const char *base = "charset.alias";
6de84d
       char *file_name;
6de84d
 
6de84d
-      /* Make it possible to override the charset.alias location.  This is
6de84d
-	 necessary for running the testsuite before "make install".  */
6de84d
-      dir = getenv ("CHARSETALIASDIR");
6de84d
-      if (dir == NULL || dir[0] == '\0')
6de84d
-	dir = relocate (GLIB_CHARSETALIAS_DIR);
6de84d
+      dir = relocate (GLIB_CHARSETALIAS_DIR);
6de84d
 
6de84d
       /* Concatenate dir and base into freshly allocated file_name.  */
6de84d
       {
6de84d
-- 
6de84d
2.31.1
6de84d