summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-11-23 10:53:49 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-11-23 10:53:49 +0000
commit4d33c3ff14997847b7e738d257a4d58faecc49fc (patch)
treee6265448e25e197dbc31a1ec32f53745756e138a /Build/source/texk
parentaf4d2552d2304ca61df83692166d017df033467d (diff)
support non-ascii values for variables (w32 only)
git-svn-id: svn://tug.org/texlive/trunk@49230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/kpathsea/elt-dirs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/elt-dirs.c b/Build/source/texk/kpathsea/elt-dirs.c
index 799cca705f6..76fca5513b4 100644
--- a/Build/source/texk/kpathsea/elt-dirs.c
+++ b/Build/source/texk/kpathsea/elt-dirs.c
@@ -409,6 +409,10 @@ kpathsea_element_dirs (kpathsea kpse, string elt)
str_llist_type *ret;
unsigned i;
+ /* If given nothing, return nothing. */
+ if (!elt || !*elt)
+ return NULL;
+
#ifdef _WIN32
/*
Change encoding of a variable into kpse->File_system_codepage
@@ -426,10 +430,6 @@ kpathsea_element_dirs (kpathsea kpse, string elt)
}
#endif
- /* If given nothing, return nothing. */
- if (!elt || !*elt)
- return NULL;
-
/* Normalize ELT before looking for a cached value. */
i = kpathsea_normalize_path (kpse, elt);