Skip to content

Commit 53e4779

Browse files
author
jef
committed
fix #2327
git-svn-id: http://svn.osgeo.org/qgis/trunk@12625 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9c00584 commit 53e4779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/grass/qgsgrass.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ void QgsGrass::setLocation( QString gisdbase, QString location )
335335
// #if defined(WIN32)
336336
// G__setenv(( char * ) "GISDBASE", shortPath( gisdbase ).toLocal8Bit().data() );
337337
//#else
338-
G__setenv(( char * ) "GISDBASE", gisdbase.toAscii().constData() );
338+
G__setenv(( char * ) "GISDBASE", gisdbase.toUtf8().constData() );
339339
//#endif
340-
G__setenv(( char * ) "LOCATION_NAME", location.toAscii().constData() );
340+
G__setenv(( char * ) "LOCATION_NAME", location.toUtf8().constData() );
341341
G__setenv(( char * ) "MAPSET", ( char * ) "PERMANENT" ); // PERMANENT must always exist
342342

343343
// Add all available mapsets to search path

0 commit comments

Comments
 (0)