+2004-04-23 Bruno Haible <bruno@clisp.org>
+
+ * localcharset.c (get_charset_aliases): Allow the CHARSETALIASDIR
+ environment variable to override LIBDIR.
+ Suggested by Matthias Clasen <mclasen@redhat.com>.
+
2004-04-20 Jim Meyering <jim@meyering.net>
Bruno Haible <bruno@clisp.org>
{
#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);
+2004-04-23 Bruno Haible <bruno@clisp.org>
+
+ * localcharset.c (get_charset_aliases): Allow the CHARSETALIASDIR
+ environment variable to override LIBDIR.
+ Suggested by Matthias Clasen <mclasen@redhat.com>.
+
2004-04-20 Jim Meyering <jim@meyering.net>
Bruno Haible <bruno@clisp.org>
{
#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);