From d1577525faa716439298da2dd6a25021e1eb25b3 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 19 Aug 2012 18:20:54 +0000 Subject: [PATCH] E: fix locale on OpenBSD. Maybe other OS need similar fixes Patch by Maxime Villard (rustyBSD) SVN revision: 75434 --- src/bin/e_intl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/e_intl.c b/src/bin/e_intl.c index 0f6935bed..8fa1eaac2 100644 --- a/src/bin/e_intl.c +++ b/src/bin/e_intl.c @@ -853,7 +853,12 @@ _e_intl_locale_system_locales_get(void) FILE *output; 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];