Changeset 11096 in ntrip for trunk/BNC/src/bncutils.cpp


Ignore:
Timestamp:
Oct 16, 2026, 3:37:24 PM (4 days ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncutils.cpp

    r11057 r11096  
    317317                     const QString& ggaType) {
    318318
    319   double lat = strtod(latitude,NULL);
    320   double lon = strtod(longitude,NULL);
    321   double hei = strtod(height,NULL);
     319  // QByteArray::toDouble() always uses the C locale - unlike strtod(),
     320  // which follows LC_NUMERIC (set by Qt from the environment)
     321  double lat = latitude.toDouble();
     322  double lon = longitude.toDouble();
     323  double hei = height.toDouble();
    322324  QString sentences = "GPGGA,";
    323325  if (ggaType.contains("GNGGA")) {
Note: See TracChangeset for help on using the changeset viewer.