Update linify to handle UTF-8
This commit is contained in:
parent
c950cb83e7
commit
c7a8bbe2f8
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ local input do
|
||||||
|
|
||||||
for line in io.stdin:lines() do
|
for line in io.stdin:lines() do
|
||||||
local buf = {}
|
local buf = {}
|
||||||
for char in line:gmatch(".") do
|
for p, char in utf8.codes(line) do
|
||||||
table.insert(buf, char)
|
table.insert(buf, utf8.char(char))
|
||||||
end
|
end
|
||||||
table.insert(input, buf)
|
table.insert(input, buf)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue