X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fgrafite_parser%2FgrafiteWalker.ml;h=742532113894b8d6202cae4435b290886cc6f848;hb=ff074375003b7b0e3d38e2742ff1d6098a0dab57;hp=eb2eb22a5ca20b4ef9e2aeec18f42f2e397ed613;hpb=f7137d4c9643a496396c5335116179087205ac05;p=helm.git diff --git a/components/grafite_parser/grafiteWalker.ml b/components/grafite_parser/grafiteWalker.ml index eb2eb22a5..742532113 100644 --- a/components/grafite_parser/grafiteWalker.ml +++ b/components/grafite_parser/grafiteWalker.ml @@ -51,7 +51,8 @@ let grep_statement ?(status = LexiconEngine.initial_status) ?(callback = ignore) | Some (status, stm) when test stm -> (* "interesting" statement *) let loc_begin, loc_end = HExtlib.loc_of_floc (get_loc stm) in let raw_statement = - String.sub content loc_begin (loc_end - loc_begin) in + Netconversion.ustring_sub `Enc_utf8 loc_begin (loc_end - loc_begin) + content in callback raw_statement; exaust (raw_statement :: acc) status | Some (status, _stm) -> exaust acc status in