DescriptionTry to fix intermittent GrAutoLocaleSetter crashes on Windows
Try to fix intermittent GrAutoLocaleSetter crashes on Windows.
The string returned by setlocale() is only valid up to
next setlocale(), so it can not be fed to setlocale().
Also, libraries such as ANGLE might call setlocale when
inside a callstack containing GrAutoLocaleSetter. This
would render the old locale pointer invalid.
Committed: https://skia.googlesource.com/skia/+/aab16e54cb6ab712b477ed9eed8b9aa52098572c
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : address review comment #Messages
Total messages: 12 (5 generated)
|