summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-08-27 15:00:58 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-08-27 15:00:58 +0100
commit796fd6e22a956b5431a960dfeccd53d4d1f7a568 (patch)
tree978b9362647945899206252e3150c452f5264b8f
parentacb8f47850b0606cc9c9635723b04018b5162c5a (diff)
downloadtongue-796fd6e22a956b5431a960dfeccd53d4d1f7a568.tar.bz2
Return categoriesHEADv0.8master
-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