[Haskell-cafe] hoogle command line program on Linux
Neil Mitchell
ndmitchell at gmail.com
Sun Jan 9 12:22:31 CET 2011
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+hs at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
More information about the Haskell-Cafe
mailing list