aboutsummaryrefslogtreecommitdiff
path: root/etc/eol.lua
diff options
context:
space:
mode:
Diffstat (limited to 'etc/eol.lua')
-rw-r--r--etc/eol.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/eol.lua b/etc/eol.lua
index fea5da9..6b2a8a9 100644
--- a/etc/eol.lua
+++ b/etc/eol.lua
@@ -1,9 +1,9 @@
1marker = {['-u'] = '\10', ['-d'] = '\13\10'} 1marker = {['-u'] = '\10', ['-d'] = '\13\10'}
2arg = arg or {'-u'} 2arg = arg or {'-u'}
3marker = marker[arg[1]] or marker['-u'] 3marker = marker[arg[1]] or marker['-u']
4local convert = socket.mime.canonic(marker) 4local convert = socket.mime.normalize(marker)
5while 1 do 5while 1 do
6 local chunk = io.read(4096) 6 local chunk = io.read(1)
7 io.write(convert(chunk)) 7 io.write(convert(chunk))
8 if not chunk then break end 8 if not chunk then break end
9end 9end