let ic =
try open_in moopath with Sys_error _ ->
raise (IncludedFileNotCompiled moopath) in
- let stream = Stream.of_channel ic in
+ let stream = Ulexing.from_utf8_channel ic in
let status = ref status in
profiler_include.CicUtil.profile
(!eval_from_stream_ref status stream) (fun _ _ -> ());
let eval_string ?do_heavy_checks ?include_paths ?clean_baseuri status str =
eval_from_stream
- ?do_heavy_checks ?include_paths ?clean_baseuri status (Stream.of_string str) (fun _ _ ->())
+ ?do_heavy_checks ?include_paths ?clean_baseuri status
+ (Ulexing.from_utf8_string str) (fun _ _ ->())
let default_options () =
(*