#598677 Add /usr/local/lib/gconv to GCONV_PATH

Package:
libc6
Source:
glibc
Description:
GNU C Library: Shared libraries
Submitter:
Daniel Trebbien
Date:
2010-10-01 02:33:04 UTC
Severity:
wishlist
#598677#5
Date:
2010-10-01 02:31:04 UTC
From:
To:
The eglibc sources are currently compiled with `GCONV_PATH` set to
`/usr/lib/gconv`. This means that `iconvconfig` and iconv operations only look
in `/usr/lib/gconv` for the `gconv-modules` file and actual gconv modules
(e.g.: `IBM901.so`).

I think that it would be helpful to be able to install gconv modules to
`/usr/local/lib/gconv`. This can be easily accomplished by making sure that the
value of `GCONV_PATH` is `/usr/lib/gconv:/usr/local/lib/gconv` during
compilation. eglibc and glibc sources can handle multiple directories in this
variable because `GCONV_PATH` is already split at colons. Here, for example, is
code from `libc/iconv/iconvconfig.c`:
  if (! nostdlib)
    {
      /* In any case also handle the standard directory.  */
      char *path = strdupa (GCONV_PATH), *tp = strsep (&path, ":");
      while (tp != NULL)
        {
          status |= handle_dir (tp);

          tp = strsep (&path, ":");
        }
    }