Skip to content
Snippets Groups Projects
Commit d24f5d61 authored by janestar's avatar janestar Committed by Victor Poughon
Browse files

BUG: mantis-1318 fix GDAL UTF-8 on Windows

parent d8676165
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,10 @@ GDALDriverManagerWrapper::~GDALDriverManagerWrapper() ...@@ -53,6 +53,10 @@ GDALDriverManagerWrapper::~GDALDriverManagerWrapper()
GDALDatasetWrapper::Pointer GDALDatasetWrapper::Pointer
GDALDriverManagerWrapper::Open( std::string filename ) const GDALDriverManagerWrapper::Open( std::string filename ) const
{ {
// This GDAL config option is there to handle UTF-8 filenames on Windows
// It fixes mantis bug 1318 where images with filenames like 你好.tif could not be read on Windows
CPLSetConfigOption("GDAL_FILENAME_IS_UTF8","NO");
GDALDatasetWrapper::Pointer datasetWrapper; GDALDatasetWrapper::Pointer datasetWrapper;
if (boost::algorithm::starts_with(filename, "http://") if (boost::algorithm::starts_with(filename, "http://")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment