int naliases,
maxaliases,
i;
- int pclose_rc;
/* expansible array of aliases */
maxaliases = 100;
}
}
- pclose_rc = ClosePipeStream(locale_a_handle);
- if (pclose_rc != 0)
- {
- ereport(ERROR,
- (errcode_for_file_access(),
- errmsg("could not execute command \"%s\": %s",
- "locale -a",
- wait_result_to_str(pclose_rc))));
- }
+ /*
+ * We don't check the return value of this, because we want to support
+ * the case where there "locale" command does not exist. (This is
+ * unusual but can happen on minimalized Linux distributions, for
+ * example.) We will warn below if no locales could be found.
+ */
+ ClosePipeStream(locale_a_handle);
/*
* Before processing the aliases, sort them by locale name. The point