Skip to content

Commit 7279269

Browse files
yoichigmfnyalldawson
authored andcommitted
bug fix can't open file using Japanese Character in name
1 parent a5cc184 commit 7279269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/processing/qgsalgorithmimportphotos.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ QVariantMap QgsImportPhotosAlgorithm::processAlgorithm( const QVariantMap &param
330330
<< fi.completeBaseName()
331331
<< QDir::toNativeSeparators( fi.absolutePath() );
332332

333-
gdal::dataset_unique_ptr hDS( GDALOpen( file.toLocal8Bit().constData(), GA_ReadOnly ) );
333+
gdal::dataset_unique_ptr hDS( GDALOpen( file.toUtf8().constData(), GA_ReadOnly ) );
334334
if ( !hDS )
335335
{
336336
feedback->reportError( QObject::tr( "Could not open %1" ).arg( QDir::toNativeSeparators( file ) ) );

0 commit comments

Comments
 (0)