Hi Erik, I'll release Hoogle 4.1.3 with a fix later today.
Thanks, Neil On Sun, Jan 9, 2011 at 5:07 AM, Erik de Castro Lopo <mle...@mega-nerd.com> wrote: > Hi all, > > I'm testing out hoogle 4.1.2 on Debian Linux and getting the > following when trying to update the local hoogle databases: > > erik > sudo hoogle data > Starting default > Starting keyword > hoogle: keyword.txt: commitAndReleaseBuffer: invalid argument > (Invalid or incomplete multibyte or wide character) > > My LANG related envorinment variables are set as follows: > > erik > env | grep LANG > LANG=en_AU.UTF-8 > GDM_LANG=en_AU.UTF-8 > LANGUAGE=en_AU.UTF-8 > LC_LANG=en_AU.UTF-8 > > When faced with a similar problem while working on Ben Lippmeier's > compiler, I fixed this by replacing all instances of readFile with > readUtf8File which is defined as: > > readUtf8File :: FilePath -> IO String > readUtf8File filePath > = do h <- openFile filePath ReadMode > hSetEncoding h utf8 > hSetEncoding stdout utf8 > hGetContents h > > Is it possible to fix this without hacking the hoogles sources? > I'd like to package hoogle for Debian, but first I need to get > it working. > > Cheers, > Erik > -- > ---------------------------------------------------------------------- > Erik de Castro Lopo > http://www.mega-nerd.com/ > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe