Mercurial > hg > octave-kai > gnulib-hg
diff lib/localcharset.c @ 5658:9d475f8488d9
Update from GNU gettext 0.14.2.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 24 Feb 2005 19:54:14 +0000 |
parents | eebff8c51a9b |
children | a48fb0e98c8c |
line wrap: on
line diff
--- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -115,10 +115,16 @@ { #if !(defined VMS || defined WIN32) FILE *fp; - const char *dir = relocate (LIBDIR); + const char *dir; const char *base = "charset.alias"; char *file_name; + /* Make it possible to override the charset.alias location. This is + necessary for running the testsuite before "make install". */ + dir = getenv ("CHARSETALIASDIR"); + if (dir == NULL || dir[0] == '\0') + dir = relocate (LIBDIR); + /* Concatenate dir and base into freshly allocated file_name. */ { size_t dir_len = strlen (dir);