Skip to content

Commit

Permalink
Fix searching localedef input on I18NPATH (BZ #16984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed May 26, 2014
1 parent 6736592 commit b60ea6f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2014-05-26 Andreas Schwab <schwab@suse.de>

[BZ #16984]
* locale/programs/repertoire.c (repertoire_read): Add slash
between I18NPATH element and file name.
* locale/programs/locfile.c (locfile_read): Likewise.

2014-05-26 Stefan Liebler <stli@linux.vnet.ibm.com>

* nptl/pthread_mutexattr_settype.c
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Version 2.20
16760, 16770, 16786, 16789, 16791, 16796, 16799, 16800, 16815, 16823,
16824, 16831, 16838, 16849, 16854, 16876, 16877, 16878, 16885, 16888,
16890, 16912, 16915, 16916, 16917, 16922, 16927, 16928, 16932, 16943,
16958, 16966, 16967, 16965, 16977, 16978.
16958, 16966, 16967, 16965, 16977, 16978, 16984.

* The minimum Linux kernel version that this version of the GNU C Library
can be used with is 2.6.32.
Expand Down
2 changes: 1 addition & 1 deletion locale/programs/locfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion locale/programs/repertoire.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b60ea6f

Please sign in to comment.