Skip to content

Commit

Permalink
MITAB: Upgrade file version with UTF-8 charset
Browse files Browse the repository at this point in the history
  • Loading branch information
drons committed Jun 28, 2024
1 parent 7cc2b29 commit b2082e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ogr/ogrsf_frmts/mitab/mitab_miffile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,10 @@ int MIFFile::SetCharset(const char *pszCharset)
{
m_poMIFFile->SetEncoding(CharsetToEncoding(pszCharset));
}
if (EQUAL(pszCharset, "UTF-8"))
{
m_nVersion = std::max(m_nVersion, 1520);
}
return 0;
}

Expand Down
4 changes: 4 additions & 0 deletions ogr/ogrsf_frmts/mitab/mitab_tabfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,10 @@ int TABFile::SetCharset(const char *pszCharset)
{
m_poMAPFile->SetEncoding(CharsetToEncoding(pszCharset));
}
if (EQUAL(pszCharset, "UTF-8"))
{
m_nVersion = std::max(m_nVersion, 1520);
}
return 0;
}

Expand Down

0 comments on commit b2082e9

Please sign in to comment.