strlen inside variable declaration is not portable C (AIX):
char env_path[MAXPGPATH + strlen("PGLOCALEDIR=")];
use sizeof instead.
Please apply to current
Andreas