Use default way to locale listing on OpenBSD

Listing /usr/share/locale doesn't work, and
already OpenBSD has support for locale.
This commit is contained in:
kikadf 2022-09-29 14:41:43 +02:00 committed by Gitea
parent 1b6d81a352
commit e5e3750ce1
3 changed files with 0 additions and 12 deletions

View File

@ -865,11 +865,7 @@ _e_intl_locale_system_locales_get(void)
locales = NULL; locales = NULL;
/* FIXME: Maybe needed for other BSD OS, or even Solaris */ /* 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"); output = popen("locale -a", "r");
#endif
if (output) if (output)
{ {
char line[32]; char line[32];

View File

@ -649,11 +649,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
e_lang_list = e_intl_language_list(); e_lang_list = e_intl_language_list();
/* Get list of all locales and start making map */ /* Get list of all locales and start making map */
#ifdef __OpenBSD__
output = popen("ls /usr/share/locale", "r");
#else
output = popen("locale -a", "r"); output = popen("locale -a", "r");
#endif
if ( output ) if ( output )
{ {
char line[32]; char line[32];

View File

@ -91,11 +91,7 @@ wizard_page_init(E_Wizard_Page *pg EINA_UNUSED, Eina_Bool *need_xdg_desktops EIN
{ {
FILE *output; FILE *output;
#ifdef __OpenBSD__
output = popen("ls /usr/share/locale", "r");
#else
output = popen("locale -a", "r"); output = popen("locale -a", "r");
#endif
if (output) if (output)
{ {
char line[32]; char line[32];