Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return from win32_setlocale() needs to be stable
Prior to this commit it was subject to freeing when the scope was exited. This commit repurposes the already-existing per-thread buffer that holds the return of setlocale(), stable until the next call to it. Instead of being used for setlocale() which isn't called directly on Windows platforms, it uses it for win32_setlocale().
- Loading branch information
1 parent
4e1743c
commit 0f6d56f
Showing
1 changed file
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters