Skip to content

Commit

Permalink
xrCore: replaced string conversion on std function
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed May 25, 2018
1 parent 5b5e0f3 commit 15b8864
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xrCore/xrstring.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <cstdio>
#include <locale>

#include "_types.h"
#include "xrCommon/inlining_macros.h"
Expand Down Expand Up @@ -205,8 +206,8 @@ IC void xr_strlwr(shared_str& src)
int i = 0;
while(lp[i])
{
lp[i] = (char) toupper(lp[i]);// TODO rewrite locale-independent toupper_l()
i++;
lp[i] = (char) std::toupper(lp[i], std::locale());
i++;
}
#endif
src = lp;
Expand Down

0 comments on commit 15b8864

Please sign in to comment.