diff options
author | Karl Berry <karl@freefriends.org> | 2009-06-01 00:09:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-06-01 00:09:46 +0000 |
commit | 1f4af4730e136afbd88453cd0effdfea9ef482cd (patch) | |
tree | 2ec3cb25c89b003756677d9ee92b792496967b62 /Build | |
parent | bfd99f208bd0719e1d980f6e88a0ee92ecc17350 (diff) |
translate ; to : in user_path
git-svn-id: svn://tug.org/texlive/trunk@13552 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 3 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/kpsewhich.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index d7adc9c3118..98cacb2337b 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -2,6 +2,9 @@ * Update version numbers 5.0.0. + * kpsewhich.c (lookup): translate ; to : in user_path, + for consistency. Report from Tomek T. + 2009-05-15 Peter Breitenlohner <peb@mppmu.mpg.de> * absolute.c, hash.c: Avoid C99isms (variable declaration not at diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c index 794e790475f..e0280d816e7 100644 --- a/Build/source/texk/kpathsea/kpsewhich.c +++ b/Build/source/texk/kpathsea/kpsewhich.c @@ -239,6 +239,14 @@ lookup (kpathsea kpse, string name) string *ret_list = NULL; if (user_path) { + /* Translate ; to : if that's our ENV_SEP. See cnf.c. */ + if (IS_ENV_SEP (':')) { + string loc; + for (loc = user_path; *loc; loc++) { + if (*loc == ';') + *loc = ':'; + } + } if (show_all) { ret_list = kpathsea_all_path_search (kpse, user_path, name); } else { |