Skip to content
Permalink
Browse files
bug fix can't open file using Japanese Character in name
  • Loading branch information
yoichigmf authored and nyalldawson committed May 8, 2019
1 parent a5cc184 commit 7279269eaf831a9605cfffcd4d4703fed2e7f7ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmimportphotos.cpp
@@ -330,7 +330,7 @@ QVariantMap QgsImportPhotosAlgorithm::processAlgorithm( const QVariantMap &param
<< fi.completeBaseName()
<< QDir::toNativeSeparators( fi.absolutePath() );

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

0 comments on commit 7279269

Please sign in to comment.