Skip to content
Permalink
Browse files

fix #2903

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14490 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 2, 2010
1 parent 4c6d0e2 commit 707522e887d85b5c45cbc108aec4322d27197a9e
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -1665,6 +1665,13 @@ QGISEXTERN bool createEmptyDataSource( const QString &uri,
//create the attribute fields

QTextCodec* codec = QTextCodec::codecForName( encoding.toLocal8Bit().data() );
if ( !codec )
{
// fall back to "System" codec
codec = QTextCodec::codecForLocale();
Q_ASSERT( codec );
}


for ( std::list<std::pair<QString, QString> >::const_iterator it = attributes.begin(); it != attributes.end(); ++it )
{

0 comments on commit 707522e

Please sign in to comment.
You can’t perform that action at this time.