summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tongue/transliteration.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tongue/transliteration.lua b/lib/tongue/transliteration.lua
index 8ac2318..a2266d2 100644
--- a/lib/tongue/transliteration.lua
+++ b/lib/tongue/transliteration.lua
@@ -108,19 +108,19 @@ local function guess_converter(env)
if category and category ~= "" then
local _, __, enc = util.split_category(category)
if enc == "" then enc = nil end
- return get_converter(enc or "UTF-8")
+ return get_converter(enc or "UTF-8"), category
end
category = getenv "LC_MESSAGES"
if category and category ~= "" then
local _, __, enc = util.split_category(category)
if enc == "" then enc = nil end
- return get_converter(enc or "UTF-8")
+ return get_converter(enc or "UTF-8"), category
end
category = getenv "LANG"
if category and category ~= "" then
local _, __, enc = util.split_category(category)
if enc == "" then enc = nil end
- return get_converter(enc or "UTF-8")
+ return get_converter(enc or "UTF-8"), category
end
return get_converter("UTF-8")
end