[Kst] branches/work/kst/portto4/kst/src/datasources/netcdf
Nicolas Brisset
nicolas.brisset at eurocopter.com
Sun Oct 3 01:13:51 CEST 2010
SVN commit 1181993 by brisset:
Utf8 seems to be the way to go... At least it works here with French
locale.
BUG: 249803
M +2 -3 kstnetcdf.cpp
--- branches/work/kst/portto4/kst/src/datasources/netcdf/kstnetcdf.cpp #1181992:1181993
@@ -253,7 +253,7 @@
bool NetcdfSource::initFile() {
- _ncfile = new NcFile(_filename.toLatin1(), NcFile::ReadOnly);
+ _ncfile = new NcFile(_filename.toUtf8().data(), NcFile::ReadOnly);
if (!_ncfile->is_valid()) {
qDebug() << _filename << ": failed to open in initFile()" << endl;
return false;
@@ -646,8 +646,7 @@
return 0;
}
- QByteArray bytes = filename.toLatin1();
- NcFile *ncfile = new NcFile(bytes.constData());
+ NcFile *ncfile = new NcFile(filename.toUtf8().data());
if (ncfile->is_valid()) {
KST_DBG qDebug() << filename << " looks like netCDF !" << endl;
delete ncfile;
More information about the Kst
mailing list