On Sat, Sep 24, 2011 at 12:16 PM, Antoine Latter <aslatter@gmail.com> wrote:
On Sat, Sep 24, 2011 at 1:10 AM, csmagic <csmagic@gmail.com> wrote:
>
> It seems to be happening elsewhere also:
> http://hackage.haskell.org/trac/hackage/ticket/856
>
> Also its more likely a locale issue than a terminal one because I get the
> same error when I replace the pipe with a redirection to a file.
>
> And yet my locales dont seem to be odd in any way (I can see)
>
> $ locale
> LANG=en_US
> LANGUAGE=
> LC_CTYPE="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_COLLATE="en_US"
> LC_MONETARY="en_US"
> LC_MESSAGES="en_US"
> LC_PAPER="en_US"
> LC_NAME="en_US"
> LC_ADDRESS="en_US"
> LC_TELEPHONE="en_US"
> LC_MEASUREMENT="en_US"
> LC_IDENTIFICATION="en_US"
> LC_ALL=
>
>

I would expect a unicode locale to look something like this:

http://www.madboa.com/geek/utf8/

So I'm guessing something is not set-up right for unicode output, and
at least one of the Cabal package descriptions includes unicode
output.

Yeah thats it:

$ export LANG=en_US.UTF-8
$ cabal list |grep -i graphviz
* graphviz
    Synopsis: Bindings to Graphviz for graph visualisation.
    Homepage: http://projects.haskell.org/graphviz/
    Synopsis: Generate graphviz-code from Haskell-code.
    Homepage: http://www.github.com/finnsson/hs2graphviz
    Synopsis: A library for the analysis and creation of Graphviz DOT files
    Synopsis: Convert GHC profiles into GraphViz's dot format
    Synopsis: Generates graphviz file of scons dependency information
    Synopsis: Visualize live Haskell data structures using vacuum, graphviz and
    Synopsis: Visualize live Haskell data structures using vacuum, graphviz and

$ export LANG=en_US
$ cabal list |grep -i graphviz
cabal: <stdout>: invalid argument
$