Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #2903
git-svn-id: http://svn.osgeo.org/qgis/trunk@14490 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 2, 2010
1 parent ada0e13 commit 83421bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 83421bf

Please sign in to comment.