Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIT crashes if path to shapefile contains cyrillic #12611

Closed
qgib opened this issue Mar 12, 2010 · 13 comments
Closed

SPIT crashes if path to shapefile contains cyrillic #12611

qgib opened this issue Mar 12, 2010 · 13 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 12, 2010

Author Name: dr - (dr -)
Original Redmine Issue: 2551

Redmine category:c++_plugins


SPIT crashes if path to shapefile contains cyrillic, for example: "d:\шейп\".

@qgib
Copy link
Contributor Author

qgib commented Mar 12, 2010

Author Name: dr - (dr -)


Also crashes when cyryllic contains in filename;

If filename contains symbol "-" SPIT returns error message.

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2010

Author Name: Paolo Cavallini (@pcav)


Does it work with [[PostGIS]] Manager plugin?

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2010

Author Name: dr - (dr -)


With [[PostGIS]] Manager QGIS produces an error:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:\\Documents and Settings\\Administrator/.qgis/python/plugins\\postgis_manager\\DlgLoadData.py", line 153, in onLoad
    res, err = self.load_data_win(out, args)
  File "C:\\Documents and Settings\\Administrator/.qgis/python/plugins\\postgis_manager\\DlgLoadData.py", line 227, in load_data_win
    p = os.popen3(cmdline)
[[UnicodeEncodeError]]: 'ascii' codec can't encode characters in position 55-57: ordinal not in range(128)

@qgib
Copy link
Contributor Author

qgib commented Jun 18, 2010

Author Name: Jürgen Fischer (@jef-n)


Replying to "dr":/issues/show/2551:

SPIT crashes if path to shapefile contains cyrillic, for example: "d:\шейп\".


I suppose this should be fixed in OGR.  See also the thread [[adding encoding file]] on the developer's mailing list.

---

-  status_id  was changed from   Open   to Closed 
-  resolution  was configured    as wontfix 

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2011

Author Name: Jürgen Fischer (@jef-n)


  • resolution was changed from wontfix to
  • status_id was changed from Closed to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2011

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from Feedback to Closed
  • resolution was changed from to upstream

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2011

Author Name: Even Rouault (@rouault)


I'd note that since GDAL 1.8.0, this should now work after the work done in "RFC30":http://trac.osgeo.org/gdal/wiki/rfc30_utf8_filenames (a more focused version of RFC 5), provided that QGIS passes UTF-8 filenames to GDALOpen() / OGROpen()

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2011

Author Name: dr - (dr -)


If path to file contains Cyrillic symbol SPIT throws an error:

The following Shapefile(s) could not be loaded:

C:/personal/geo/рельеф/sfo.shp
----------------------------------------------------------------------------------------
REASON: File cannot be opened

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2011

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from Closed to Feedback
  • resolution was changed from upstream to

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2011

Author Name: Jürgen Fischer (@jef-n)


Replying to [comment:8 rouault]:

I'd note that since GDAL 1.8.0, this should now work after the work done in "RFC30":http://trac.osgeo.org/gdal/wiki/rfc30_utf8_filenames (a more focused version of RFC 5), provided that QGIS passes UTF-8 filenames to GDALOpen() / OGROpen()

Thanks. Missed that one. Support for UTF8 in GDAL/OGR 1.8 added in .


  • resolution was changed from to fixed
  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2011

Author Name: dr - (dr -)


SPIT still crashes if path contains cyrillic,


  • resolution was changed from fixed to
  • status_id was changed from Closed to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2011

Author Name: Jürgen Fischer (@jef-n)


should be fixed in 09300f6 (SVN r15157).

@qgib
Copy link
Contributor Author

qgib commented Feb 13, 2011

Author Name: dr - (dr -)


Works for me now.


  • status_id was changed from Feedback to Closed
  • resolution was changed from to fixed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant