From 993406770ad3dab0728297d7de84d7e394373bd9 Mon Sep 17 00:00:00 2001 From: Sergey Kholodilov Date: Thu, 9 Mar 2017 18:12:08 +0400 Subject: [PATCH] [1.11.x] Fixed Python 2/Windows libgdal crash if PATH contains non-ASCII symbols. --- django/contrib/gis/gdal/libgdal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py index 7d7292b7b8..a987b387b2 100644 --- a/django/contrib/gis/gdal/libgdal.py +++ b/django/contrib/gis/gdal/libgdal.py @@ -23,7 +23,7 @@ if lib_path: lib_names = None elif os.name == 'nt': # Windows NT shared libraries - lib_names = ['gdal111', 'gdal110', 'gdal19', 'gdal18', 'gdal17'] + lib_names = [str('gdal111'), str('gdal110'), str('gdal19'), str('gdal18'), str('gdal17')] elif os.name == 'posix': # *NIX library names. lib_names = ['gdal', 'GDAL', 'gdal1.11.0', 'gdal1.10.0', 'gdal1.9.0', 'gdal1.8.0', 'gdal1.7.0']