diff options
author | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-07-28 12:30:14 +0200 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-07-28 12:30:14 +0200 |
commit | 71b101172275a7c5872f6e8e70f9c0185f93f828 (patch) | |
tree | 3d31693af2a5f595b5a8f8cbab3438c3bb6cd18d /ide/ideutils.ml | |
parent | 6d8d39fd0a1c7dac1b6415660fd97fe3ad010ff7 (diff) |
Use open_utf8_file_in for opening files in the IDE. (Fix bug #2874)
File system.ml seemed like a better choice than util.ml for sharing the
code, but it was bringing a bunch of useless dependencies to the IDE.
There are presumably several other tools that would benefit from using
open_utf8_file_in instead of open_in, e.g. coqdoc.
Diffstat (limited to 'ide/ideutils.ml')
-rw-r--r-- | ide/ideutils.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ide/ideutils.ml b/ide/ideutils.ml index 67e4bdb0c..5892fb3d9 100644 --- a/ide/ideutils.ml +++ b/ide/ideutils.ml @@ -311,7 +311,7 @@ let read_buffer = Buffer.create maxread I/O Exceptions are propagated. *) let read_file name buf = - let ic = open_in name in + let ic = Util.open_utf8_file_in name in let len = ref 0 in try while len := input ic read_string 0 maxread; !len > 0 do |