Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4028567
By: nobody

I had the same problem with pic2plot 2.4 on MSW/XP:

I removed CR as suggested, verified that only LFs are included: no success. :-(

Then I downloaded the source code and looked into the parser included in 
main.cc,
especially on what is happening in function do_file:

the conclusion was that a " " after .PS could help (I also added it after .PE):

line 589:
case HAD_PS:
          if (c == ' ' || c == '\n' || compatible_flag) 
          {
              ungetc(c, fp);
              do_picture(fp);   // do the picture, incl. args of .PS if any
              state = START;
          }

Immediately, I got valid output files. :-)

Then I tried it with CR/LFs in a file, it is working ,too, but error messages
are issued:

pic2plot:test1.pic:2: illegal input character code 13

However, they do not prevent generation of output, it seems these are warnings,
only. The picture was drawn as expected.

There seems to be confusion if a '\n' follows immediately .PS, the check of
c=='\n' seems to fail, but by a trailing blank the call of "do_picure" is 
enforced,
too.

I have chosen pic2plot because I failed too for plotlib previously: no output
and a crash on call of pl_closepl_r though a valid pointer/plotter handle was
returned and all operations were executed without returning an error or issueing
an error message including   execution of pl_endpath_r ...



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to