[Click] Clicky syntax error
Eddie Kohler
kohler at cs.ucla.edu
Thu May 6 00:47:31 EDT 2010
Thanks for this message! I've checked in a related improvement; let us know
if it doesn't work.
Eddie
Jonathan Kirchhoff wrote:
> Hi,
>
> I encountered an error running clicky (1.8.0 release) on Ubuntu 9.10,
> resulting in the elements being placed on top of each other.
>
> $ src/clicky ../../conf/test.click
> digraph {
> nodesep=0,14;
> ranksep=0,2;
> ...
>
> Error: <stdin>:2: syntax error near line 2
> context: >>> nodesep=0, <<< 14;
>
> The problem appears to be that the StringAccum class uses sprintf(),
> which in turn refers to the machine's locale settings for the correct
> decimal separator. However, graphviz does not accept comma separateted
> decimals by default.
>
> Therefore, overriding LC_NUMERIC with something like 'en_US.utf-8'
> solves the graphviz syntax error. A call to setlocale() works and should
> not affect other programs:
>
> setlocale(LC_NUMERIC, "en_US.utf-8");
>
> If there's a better solution, please let me know. Thanks ;-)
>
> Regards
> Jonathan
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list