From bf99beba201f05b292ca76cae5a341ee40449def Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Tue, 7 Feb 2017 09:56:27 +0100
Subject: [PATCH] Revert "BUG: mantis-1318 fix GDAL UTF-8 on Windows"

(does not actually fix the issue.)
---
 Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx b/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx
index ff29de09c3..6eb7a346fd 100644
--- a/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx
+++ b/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx
@@ -53,10 +53,6 @@ GDALDriverManagerWrapper::~GDALDriverManagerWrapper()
 GDALDatasetWrapper::Pointer
 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;
 
   if (boost::algorithm::starts_with(filename, "http://")
-- 
GitLab