Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bug fix can't open file using Japanese Character in name
  • Loading branch information
yoichigmf committed May 8, 2019
1 parent 95013d2 commit 3603756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmimportphotos.cpp
Expand Up @@ -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 ) ) );
Expand Down

0 comments on commit 3603756

Please sign in to comment.