From ea1de0fb9e36f1d1830b13e22b644a6cb641f432 Mon Sep 17 00:00:00 2001 From: Konstantinos Samaras-Tsakiris Date: Tue, 4 Jun 2019 21:02:40 +0300 Subject: [PATCH] Fix mpastell/Weave.jl#214 Fixes incorrect UTF-8 string handling as described in https://github.com/mpastell/Weave.jl/issues/214. --- src/run.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.jl b/src/run.jl index 9e97265..7a241f3 100644 --- a/src/run.jl +++ b/src/run.jl @@ -256,7 +256,7 @@ end function parse_input(input::AbstractString) parsed = Tuple{AbstractString, Any}[] input = lstrip(input) - n = length(input) + n = sizeof(input) pos = 1 #The first character is extra line end while pos ≤ n oldpos = pos