[Click] Clicky syntax error
Jonathan Kirchhoff
kirchho at cs.uni-bonn.de
Tue Apr 20 09:44:15 EDT 2010
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
More information about the click
mailing list