E: fix locale on OpenBSD. Maybe other OS need similar fixes

Patch by Maxime Villard (rustyBSD)

SVN revision: 75434
This commit is contained in:
Vincent Torri 2012-08-19 18:20:54 +00:00
parent 84d21bd8e5
commit d1577525fa
1 changed files with 5 additions and 0 deletions

View File

@ -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];