Skip to content

Commit

Permalink
Revert "xrCore: fix linux xr_strlwr"
Browse files Browse the repository at this point in the history
This reverts commit 61ce3df.
  • Loading branch information
eagleivg committed Aug 2, 2018
1 parent 1d111bc commit d6c3543
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/xrCore/xrstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ IC void xr_strlwr(shared_str& src)
int i = 0;
while(lp[i])
{
lp[i] = (char) std::tolower(lp[i], std::locale());
lp[i] = (char) std::toupper(lp[i], std::locale());
i++;
}
#endif
Expand All @@ -217,7 +217,13 @@ IC void xr_strlwr(shared_str& src)

IC char * xr_strlwr(char * src)
{
return SDL_strlwr(src);
int i = 0;
while(src[i])
{
src[i] = (char) toupper(src[i]);// TODO rewrite locale-independent toupper_l()
i++;
}
return src;
}

#pragma pack(pop)

0 comments on commit d6c3543

Please sign in to comment.