Skip to content

Commit

Permalink
Specify input encoding based on a file pattern
Browse files Browse the repository at this point in the history
Adding forgotten close statement
  • Loading branch information
albert-github committed Jun 5, 2022
1 parent 256f352 commit d0d1482
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/doxygen.cpp
Expand Up @@ -11407,6 +11407,10 @@ void adjustConfiguration()
"Check the 'INPUT_ENCODING' setting in the config file!\n",
qPrint(Config_getString(INPUT_ENCODING)),qPrint("UTF-8"),strerror(errno));
}
else
{
portable_iconv_close(cd);
}

// check and split INPUT_FILE_ENCODING
const StringVector &fileEncod = Config_getList(INPUT_FILE_ENCODING);
Expand Down Expand Up @@ -11434,6 +11438,10 @@ void adjustConfiguration()
"Check the 'INPUT_FILE_ENCODING' setting in the config file!\n",
qPrint(encoding),qPrint("UTF-8"),strerror(errno));
}
else
{
portable_iconv_close(cd);
}

Doxygen::inputFileEncoding.push_back(InputFileEncoding(pattern, encoding));
}
Expand Down

0 comments on commit d0d1482

Please sign in to comment.