summaryrefslogtreecommitdiff
path: root/sci-geosciences/geocode-glib/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-14 19:44:42 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-14 19:44:42 +0100
commit4392d53af7ce45ccfe6eb14146479ef0e2bd790a (patch)
tree505de6d6499defff572e53779c70f5fac1118499 /sci-geosciences/geocode-glib/files
parent926f46a6d07cdbc78d625b2dfca6a3c27a95b14a (diff)
gentoo auto-resync : 14:10:2022 - 19:44:42
Diffstat (limited to 'sci-geosciences/geocode-glib/files')
-rw-r--r--sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch b/sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch
deleted file mode 100644
index 5df7814383c0..000000000000
--- a/sci-geosciences/geocode-glib/files/3.26.3-tests-Fix-locale-in-pi-test.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From c9bbf13d76600492565fa042638b48cb737e492d Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess@hadess.net>
-Date: Sat, 2 Jul 2022 10:11:10 +0200
-Subject: [PATCH] tests: Fix locale in "pi" test
-
-The test expects the locale to be en_GB.UTF-8, so set it as such.
-
-Closes: #27
----
- geocode-glib/tests/geocode-glib.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/geocode-glib/tests/geocode-glib.c b/geocode-glib/tests/geocode-glib.c
-index f74d031..ef20716 100644
---- a/geocode-glib/tests/geocode-glib.c
-+++ b/geocode-glib/tests/geocode-glib.c
-@@ -410,10 +410,14 @@ test_pi (void)
- {
- g_autoptr (GHashTable) params = NULL;
- GeocodeForward *object;
-+ g_autofree char *old_locale = NULL;
- GError *error = NULL;
- GList *res;
- GeocodePlace *place;
-
-+ old_locale = g_strdup (setlocale(LC_ALL, NULL));
-+ setlocale (LC_ALL, "en_GB.UTF-8");
-+
- /* The query parameters the mock server expects to receive. */
- params = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL);
- add_attr_string (params, "q", "Jack Cole Building, St Andrews");
-@@ -439,6 +443,8 @@ test_pi (void)
- g_assert_cmpstr (geocode_place_get_street_address (place), ==, "North Haugh π");
- g_object_unref (place);
- g_list_free (res);
-+
-+ setlocale (LC_ALL, old_locale);
- }
-
- static void
---
-2.35.1
-