diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-08-05 17:04:20 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-05 07:42:51 -0700 |
commit | 4bf0d768f9cc37be6d7400b83b15c66b46cfbf0a (patch) | |
tree | 220316ca8a4eaea0f6c3546fafa4fa1a3ea0cdbf /qt-ui | |
parent | 63d98138b41fe373960b58ecb45c239392d43c57 (diff) | |
download | subsurface-4bf0d768f9cc37be6d7400b83b15c66b46cfbf0a.tar.gz |
Web: use subsurface_fopen() for non-ASCII paths on Win32
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index e7f81d7fa..2b988c7a6 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -5,7 +5,6 @@ #include <libxml/parser.h> #include <zip.h> #include <errno.h> -#include <stdio.h> #include <QDir> #include <QHttpMultiPart> @@ -153,7 +152,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, QString innerTmpFile = tempfile; QString tmpSuffix = QString::number(qrand() % 9999) + ".tmp"; innerTmpFile.replace(".dld", tmpSuffix); - f = fopen(QFile::encodeName(QDir::toNativeSeparators(innerTmpFile)), "w+"); + f = subsurface_fopen(QFile::encodeName(QDir::toNativeSeparators(innerTmpFile)), "w+"); if (!f) { report_error(tr("cannot create temporary file: %s").toUtf8(), qt_error_string().toUtf8().data()); goto error_close_zip; |