Skip to content

Commit

Permalink
Why, MSVC?
Browse files Browse the repository at this point in the history
  • Loading branch information
hozuki committed Apr 16, 2020
1 parent f8d1548 commit b93cc56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '0.3.4.{build}'
version: '0.3.5.{build}'
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
Expand Down
5 changes: 3 additions & 2 deletions src/apps/common/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ string common_utils::ReplaceExtension(const string &s, const string &oldExt, con
// extensions are in ASCII, and we don't care about chars before the extension,
// we can use this method (tolower()). Otherwise, it causes trouble for non-
// ASCII encodings.
std::transform(sl.begin(), sl.end(), sl.begin(), std::tolower);
std::transform(extl.begin(), extl.end(), extl.begin(), std::tolower);
// Until VS 2019, tolower() is not present in std namespace.
std::transform(sl.begin(), sl.end(), sl.begin(), ::tolower);
std::transform(extl.begin(), extl.end(), extl.begin(), ::tolower);

if (!hasEnding(sl, extl)) {
return s;
Expand Down

0 comments on commit b93cc56

Please sign in to comment.