Fix searching localedef input on I18NPATH (BZ #16984)
Commit Message
Committed.
Andreas.
[BZ #16984]
* locale/programs/repertoire.c (repertoire_read): Add slash
between I18NPATH element and file name.
* locale/programs/locfile.c (locfile_read): Likewise.
Comments
On 05/26/2014 06:36 AM, Andreas Schwab wrote:
> Committed.
>
> Andreas.
>
> [BZ #16984]
> * locale/programs/repertoire.c (repertoire_read): Add slash
> between I18NPATH element and file name.
> * locale/programs/locfile.c (locfile_read): Likewise.
Please set your subject line to [COMMITTED] then.
c.
@@ -84,7 +84,7 @@ locfile_read (struct localedef_t *result, const struct charmap_t *charmap)
if (ldfile == NULL)
{
- stpcpy (stpcpy (path, next), filename);
+ stpcpy (stpcpy (stpcpy (path, next), "/"), filename);
ldfile = lr_open (path, locfile_hash);
}
@@ -96,7 +96,7 @@ repertoire_read (const char *filename)
if (repfile == NULL)
{
- stpcpy (stpcpy (path, next), filename);
+ stpcpy (stpcpy (stpcpy (path, next), "/"), filename);
repfile = lr_open (path, repertoiremap_hash);
}