* Ralf Gerlich -- Monday 13 June 2005 20:07:
> > Gerard Robin wrote:
> > > open("/home/tux-le-boss/.fgfs/preferences.xml ", [...]
> > ^^
> > Did you see those blanks at the end of the filename? Are these actually
> > in the original report? Where could these come from?
>
> Arghh. Good catch! Apparently, fgfs doesn't strip that. And Gerard
> uses a crappy editor.
Maybe this should be changed like so:
diff -u -p -U1 -r1.67 options.cxx
--- options.cxx 25 Feb 2005 21:20:17 -0000 1.67
+++ options.cxx 13 Jun 2005 18:39:45 -0000
@@ -1537,3 +1537,3 @@ fgParseOptions (const string& path) {
// catch extraneous (DOS) line ending character
- if ( line[line.length() - 1] < 32 ) {
+ while ( line[line.length() - 1] <= 32 ) {
line = line.substr( 0, line.length()-1 );
or more efficient ... :-)
m.
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d