mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
63d98138b4
commit
4bf0d768f9
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue