Skip to content

Commit 5bd9b6d

Browse files
borysiastynyalldawson
authored andcommitted
Find more available encodings for the dxf exporter
1 parent 06f2a7b commit 5bd9b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/dxf/qgsdxfexport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,7 @@ QStringList QgsDxfExport::encodings()
21932193
for ( const QByteArray &codec : codecs )
21942194
{
21952195
int i;
2196-
for ( i = 0; i < static_cast< int >( sizeof( DXF_ENCODINGS ) / sizeof( *DXF_ENCODINGS ) ) && strcmp( codec.data(), DXF_ENCODINGS[i][1] ) != 0; ++i )
2196+
for ( i = 0; i < static_cast< int >( sizeof( DXF_ENCODINGS ) / sizeof( *DXF_ENCODINGS ) ) && strcasecmp( codec.data(), DXF_ENCODINGS[i][1] ) != 0; ++i )
21972197
;
21982198

21992199
if ( i < static_cast< int >( sizeof( DXF_ENCODINGS ) / sizeof( *DXF_ENCODINGS ) ) )

0 commit comments

Comments
 (0)