id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 7186,"gdal_retile.py fails if the filename contains ""%"" (percent) symbol.",OlegSerov,warmerdam,"gdal_retile.py fails if the filename contains ""%"" (percent) symbol.. Error message: `Traceback (most recent call last): File ""/home/ubuntu/.processing_server_env/bin/gdal_retile.py"", line 1034, in sys.exit(main(sys.argv)) File ""/home/ubuntu/.processing_server_env/bin/gdal_retile.py"", line 940, in main dsCreatedTileIndex = tileImage(minfo,ti) File ""/home/ubuntu/.processing_server_env/bin/gdal_retile.py"", line 355, in tileImage tilename=getTileName(minfo,ti, xIndex, yIndex) File ""/home/ubuntu/.processing_server_env/bin/gdal_retile.py"", line 697, in getTileName return format % (yIndex,xIndex) ValueError: unsupported format character 'N' (0x4e) at index 59` This happens on this line: https://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/scripts/gdal_retile.py?rev=28002#L712 Because it uses python formatting to insert x y coordinates. However, it does not escape the original string and the parts of original string tries to be formated. You should escape all % sign with %%. E.g. `a = a.replace('%', '%%')`",defect,closed,normal,,default,svn-trunk,normal,fixed,,