POV-Ray : Newsgroups : povray.beta-test : Shellout command line contains trailing \r\n Server Time
12 Nov 2024 20:02:31 EST (-0500)
  Shellout command line contains trailing \r\n (Message 1 to 2 of 2)  
From: Tomasz Sowinski
Subject: Shellout command line contains trailing \r\n
Date: 24 Sep 2001 09:10:16
Message: <3baf30b8@news.povray.org>
When Pov 3.5 Beta4/Windows launches another process from Post_Scene_Command,
it appends \r\n to the command line. This causes problems, at least when
invoked program is written in MSVC. MSVC startup code parses command line
and puts the parameters into argc/argv, however, it doesn't strip trailing
\r\n and last argument will contain these additional characters. If it's a
filename, CreateFile or fopen will fail.

This does not depend on the number of empty lines following
Post_Scene_Command.

This doesn't happen at all on PovRay 3.1g and earlier releases.

Regards,
Tomasz Sowinski


Post a reply to this message

From: Ron Parker
Subject: Re: Shellout command line contains trailing \r\n
Date: 24 Sep 2001 23:06:52
Message: <slrn9qvt6g.1o3.ron.parker@fwi.com>
On Mon, 24 Sep 2001 15:08:59 +0200, Tomasz Sowinski wrote:
>When Pov 3.5 Beta4/Windows launches another process from Post_Scene_Command,
>it appends \r\n to the command line. This causes problems, at least when
>invoked program is written in MSVC. MSVC startup code parses command line
>and puts the parameters into argc/argv, however, it doesn't strip trailing
>\r\n and last argument will contain these additional characters. If it's a
>filename, CreateFile or fopen will fail.

I believe this should be fixed in the next beta, but I haven't tested it
extensively.  Further tests upon receipt of beta 5 are encouraged.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.