summaryrefslogtreecommitdiffhomepage
path: root/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins')
-rw-r--r--Plugins/StdinReader.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Plugins/StdinReader.hs b/Plugins/StdinReader.hs
index d7ec676..4283a96 100644
--- a/Plugins/StdinReader.hs
+++ b/Plugins/StdinReader.hs
@@ -18,6 +18,7 @@ import Prelude hiding (catch)
import System.Posix.Process
import System.Exit
import System.IO
+import qualified System.IO.UTF8 as U
import Control.Exception (catch)
import Plugins
@@ -26,7 +27,7 @@ data StdinReader = StdinReader
instance Exec StdinReader where
start StdinReader cb = do
- cb =<< catch (hGetLine stdin) (\e -> do hPrint stderr e; return "")
+ cb =<< catch (U.hGetLine stdin) (\e -> do hPrint stderr e; return "")
eof <- hIsEOF stdin
if eof
then exitImmediately ExitSuccess