Skip to content

Commit

Permalink
fix #2327
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12625 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 27, 2009
1 parent 9c00584 commit 53e4779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/grass/qgsgrass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ void QgsGrass::setLocation( QString gisdbase, QString location )
// #if defined(WIN32)
// G__setenv(( char * ) "GISDBASE", shortPath( gisdbase ).toLocal8Bit().data() );
//#else
G__setenv(( char * ) "GISDBASE", gisdbase.toAscii().constData() );
G__setenv(( char * ) "GISDBASE", gisdbase.toUtf8().constData() );
//#endif
G__setenv(( char * ) "LOCATION_NAME", location.toAscii().constData() );
G__setenv(( char * ) "LOCATION_NAME", location.toUtf8().constData() );
G__setenv(( char * ) "MAPSET", ( char * ) "PERMANENT" ); // PERMANENT must always exist

// Add all available mapsets to search path
Expand Down

0 comments on commit 53e4779

Please sign in to comment.