Robert,

This change works fine. Thanks!  I forgot to report the bug to Microsoft, so
I just did it:
https://connect.microsoft.com/VisualStudio/feedback/details/618624/problem-with-line-feed-n-when-running-app-from-visual-studio#details

John Ivar

On Mon, Nov 1, 2010 at 6:22 PM, Robert Osfield <[email protected]>wrote:

> Hi John,
>
> I have tweaked your changes to make them a bit more defensive and a
> bit more verbose in variable namings to make it easier to read, and
> then after testing them added a #ifdef WIN32 to make it clear that
> this is something to is platform specific hack.  The code now looks
> like:
>
> #ifdef WIN32
>    // Remove linefeed from last argument if it exist
>    char* lastline = argc==0 ? 0 : _argv[*argc-1];
>    if (lastline)
>    {
>        int len = strlen(lastline);
>        if (len>0 && lastline[len-1] == '\n') lastline[len-1]= '\0';
>    }
> #endif
>
> Could you do checkout svn/trunk or attached ArgumentParser.cpp and let
> me know if this change works fine.
>
> Thanks,
> Robert.
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to