Skip to content

Commit 9a6c868

Browse files
committed
more w32_path for debug outputs
1 parent a0128b0 commit 9a6c868

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

script/texdoclib-config.tlu

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ function M.set_config_element(key, value, context)
152152

153153
-- special case: if we just set debug_list, print version info now
154154
if key == 'debug_list' then
155-
dbg_print('version', '%s v%s', C.fullname, C.version)
155+
local w32_path = import_function('util', 'w32_path')
156+
dbg_print('version', '%s v%s', w32_path(C.fullname), C.version)
156157
end
157158

158159
-- now tell what we have just done, for debugging

script/texdoclib-search.tlu

+3-2
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ init_texdocs_database = function()
359359

360360
doc_roots = {}
361361
local kpse_texdocs = kpse.expand_var('$TEXDOCS')
362+
local w32_path = texdoc.util.w32_path
362363

363364
-- expand the path and turn it into a lua list
364365
local raw_doc_roots = kpse.expand_braces(kpse_texdocs):explode(C.kpse_sep)
@@ -376,13 +377,13 @@ init_texdocs_database = function()
376377
local index_mandatory = (n == 1)
377378
dbg_print('texdocs',
378379
'texdocs[%d] = %s (index_mandatory=%s, recursion_allowed=%s)',
379-
i, path, tostring(index_mandatory), tostring(recursion_allowed))
380+
i, w32_path(path), tostring(index_mandatory), tostring(recursion_allowed))
380381

381382
-- decide if we should use a ls-R index, the filesystem, or do nothing
382383
local root, shift = lsr_root(path)
383384
if root and shift and recursion_allowed then
384385
dbg_print('texdocs',
385-
'texdocs[%d] using index: %s (shift=%s)', i, root, shift)
386+
'texdocs[%d] using index: %s (shift=%s)', i, w32_path(root), shift)
386387
db = init_lsr_db(root, shift)
387388
elseif not index_mandatory and lfs.isdir(path) then
388389
dbg_print('texdocs',

0 commit comments

Comments
 (0)