Update linify to handle UTF-8

This commit is contained in:
Talia 2022-08-01 14:59:19 +02:00
parent c950cb83e7
commit c7a8bbe2f8

View file

@ -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