I had already tested that. I don't know why, but it doesn't work. I added: #include <locale.h>
setlocale(LC_NUMERIC,"C"); before the execlp ("gnuplot", NULL); or setenv("LC_NUMERIC","C",1); before the execlp ("gnuplot", NULL); It compiles, but the bug remains.