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
|
||||
local buf = {}
|
||||
for char in line:gmatch(".") do
|
||||
table.insert(buf, char)
|
||||
for p, char in utf8.codes(line) do
|
||||
table.insert(buf, utf8.char(char))
|
||||
end
|
||||
table.insert(input, buf)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue