Index: trunk/BNC/RTCM3/ephemeris.cpp
===================================================================
--- trunk/BNC/RTCM3/ephemeris.cpp	(revision 3660)
+++ trunk/BNC/RTCM3/ephemeris.cpp	(revision 3661)
@@ -793,5 +793,4 @@
 //////////////////////////////////////////////////////////////////////////////
 t_ephGPS::t_ephGPS(float rnxVersion, const QStringList& lines) {
-  cout << "t_ephGPS: " << rnxVersion << " " << lines.size() << endl;
   if (lines.size() != 8) {
     _ok = false;
@@ -800,19 +799,20 @@
   QRegExp rex;
   if (rnxVersion < 3.0) {
-    rex.setPattern("(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{5})(.{19})(.{19})(.{19})");
-    cout << lines[0].toAscii().data() << endl;
+    rex.setPattern("(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2})(.{5})(.{19})(.{19})(.{19})\\s*");
     if (rex.exactMatch(lines[0])) {
       QStringList hlp = rex.capturedTexts();
-      _prn = 'G' + QString("%1").arg(hlp[0], 2, QChar('0'));
-      int    year  = hlp[1].toInt();
-      int    month = hlp[2].toInt();
-      int    day   = hlp[3].toInt();
-      int    hour  = hlp[4].toInt();
-      int    min   = hlp[5].toInt();
-      double sec   = hlp[6].toDouble();
+      _prn = QString("G%1").arg(hlp[1], 2, QChar('0'));
+      int    year  = hlp[2].toInt();
+      int    month = hlp[3].toInt();
+      int    day   = hlp[4].toInt();
+      int    hour  = hlp[5].toInt();
+      int    min   = hlp[6].toInt();
+      double sec   = hlp[7].toDouble();
       cout << _prn.toAscii().data() << " " << year << " " << month << " "
-           << day << " " << hour << " " << min << " " << sec << endl;
+           << day << " " << hour << " " << min << " " << sec << "<<<" << endl;
     }
   }
+
+  _ok = true;
 }
 
Index: trunk/BNC/bncpostprocess.cpp
===================================================================
--- trunk/BNC/bncpostprocess.cpp	(revision 3660)
+++ trunk/BNC/bncpostprocess.cpp	(revision 3661)
@@ -106,4 +106,8 @@
   cout << "corrFile: " << _opt->corrFileName.toAscii().data() << endl;
 
+  t_eph* eph;
+  while (_rnxNavFile->getNextEph(eph) == success) {
+  }
+
   int MAXI = 5;
   for (int ii = 1; ii < MAXI; ii++) {
