summaryrefslogtreecommitdiff
path: root/tex/context/base/data-tex.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-03-25 19:20:25 +0200
committerMarius <mariausol@gmail.com>2011-03-25 19:20:25 +0200
commit1455dd60b68c9140db1b9977c9e5ce372b772ec8 (patch)
treed2b7060a4d9891966a056dcf143ef20d43390561 /tex/context/base/data-tex.lua
parent2a9554684f61df8db63dec6d4e874f49b25a212b (diff)
downloadcontext-1455dd60b68c9140db1b9977c9e5ce372b772ec8.tar.gz
beta 2011.03.25 18:03
Diffstat (limited to 'tex/context/base/data-tex.lua')
-rw-r--r--tex/context/base/data-tex.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/tex/context/base/data-tex.lua b/tex/context/base/data-tex.lua
index fddd04bcc..14148b20e 100644
--- a/tex/context/base/data-tex.lua
+++ b/tex/context/base/data-tex.lua
@@ -60,17 +60,17 @@ function helpers.textopener(tag,filename,filehandle)
filehandle:close()
end
if type(lines) == "string" then
- local kind = utffiletype(lines)
+ local coding = utffiletype(lines)
if trace_locating then
- report_tex("%s opener, '%s' opened using method '%s'",tag,filename,kind)
+ report_tex("%s opener, '%s' opened using method '%s'",tag,filename,coding)
end
- if kind == "utf-16-be" then
+ if coding == "utf-16-be" then
lines = unicode.utf16_to_utf8_be(lines)
- elseif kind == "utf-16-le" then
+ elseif coding == "utf-16-le" then
lines = unicode.utf16_to_utf8_le(lines)
- elseif kind == "utf-32-be" then
+ elseif coding == "utf-32-be" then
lines = unicode.utf32_to_utf8_be(lines)
- elseif kind == "utf-32-le" then
+ elseif coding == "utf-32-le" then
lines = unicode.utf32_to_utf8_le(lines)
else -- utf8 or unknown
if textfileactions.dirty then -- maybe use autocompile