This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit d712789c9a0a667077924df5dfab3118a74650d8
Author: kikadf <[email protected]>
AuthorDate: Thu Sep 29 14:41:43 2022 +0200

    Use default way to locale listing on OpenBSD
    Listing /usr/share/locale doesn't work, and
    already OpenBSD has support for locale.
---
 src/bin/e_intl.c                          | 4 ----
 src/modules/conf_intl/e_int_config_intl.c | 4 ----
 src/modules/wizard/page_010.c             | 4 ----
 3 files changed, 12 deletions(-)

diff --git a/src/bin/e_intl.c b/src/bin/e_intl.c
index cf7c8e077..7c9581190 100644
--- a/src/bin/e_intl.c
+++ b/src/bin/e_intl.c
@@ -865,11 +865,7 @@ _e_intl_locale_system_locales_get(void)
 
    locales = NULL;
    /* FIXME: Maybe needed for other BSD OS, or even Solaris */
-#ifdef __OpenBSD__
-   output = popen("ls /usr/share/locale", "r");
-#else
    output = popen("locale -a", "r");
-#endif
    if (output)
      {
         char line[32];
diff --git a/src/modules/conf_intl/e_int_config_intl.c b/src/modules/conf_intl/e_int_config_intl.c
index be3a81687..62a48ca5b 100644
--- a/src/modules/conf_intl/e_int_config_intl.c
+++ b/src/modules/conf_intl/e_int_config_intl.c
@@ -649,11 +649,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
    e_lang_list = e_intl_language_list();
 
    /* Get list of all locales and start making map */
-#ifdef __OpenBSD__
-   output = popen("ls /usr/share/locale", "r");
-#else
    output = popen("locale -a", "r");
-#endif
    if ( output )
      {
         char line[32];
diff --git a/src/modules/wizard/page_010.c b/src/modules/wizard/page_010.c
index 82d08ecb1..c18057143 100644
--- a/src/modules/wizard/page_010.c
+++ b/src/modules/wizard/page_010.c
@@ -91,11 +91,7 @@ wizard_page_init(E_Wizard_Page *pg EINA_UNUSED, Eina_Bool *need_xdg_desktops EIN
 {
    FILE *output;
 
-#ifdef __OpenBSD__
-   output = popen("ls /usr/share/locale", "r");
-#else
    output = popen("locale -a", "r");
-#endif
    if (output)
      {
         char line[32];

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to