summaryrefslogtreecommitdiff
path: root/tex/context/base/core-sys.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-08-08 23:45:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-08-08 23:45:00 +0200
commit994ef322c591f7cae9b672844e96482723b89b4b (patch)
treee7951df9c461e844045680dc7d8baf2c1a9b19c7 /tex/context/base/core-sys.lua
parent83efdae0bed9228d31513e0555e3229250089f14 (diff)
downloadcontext-994ef322c591f7cae9b672844e96482723b89b4b.tar.gz
beta 2012.08.08 23:45
Diffstat (limited to 'tex/context/base/core-sys.lua')
-rw-r--r--tex/context/base/core-sys.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/core-sys.lua b/tex/context/base/core-sys.lua
index 0be9fd588..703bcac0f 100644
--- a/tex/context/base/core-sys.lua
+++ b/tex/context/base/core-sys.lua
@@ -7,7 +7,7 @@ if not modules then modules = { } end modules ['core-sys'] = {
}
local lower, format = string.lower, string.format
-local extname, basename, removesuffix = file.extname, file.basename, file.removesuffix
+local suffix, basename, removesuffix = file.suffix, file.basename, file.removesuffix
local environment = environment
@@ -15,9 +15,9 @@ function commands.updatefilenames(inputfilename,outputfilename)
environment.inputfilename = inputfilename or ""
environment.outputfilename = outputfilename or ""
environment.jobfilename = inputfilename or tex.jobname or ""
- environment.jobfilesuffix = lower(extname(environment.jobfilename))
+ environment.jobfilesuffix = lower(suffix(environment.jobfilename))
environment.inputfilebarename = removesuffix(basename(inputfilename))
- environment.inputfilesuffix = lower(extname(inputfilename))
+ environment.inputfilesuffix = lower(suffix(inputfilename))
end
statistics.register("result saved in file", function()