Blender Git Loki

Git Commits -> Revision 8e237d8

Revision 8e237d8 by Ankit Meel (blender-v2.93-release)
November 2, 2021, 12:15 (GMT)
Fix T88877: 2.93: Crash on recent OSX with a non-English locale.

Looks like OSX changed the default format of its locale, which is not
valid anymore for gettext/boost::locale.

Solution based on investigations and patch by Kieun Mun (@kieuns), with
some further tweaks by Ankit Meel (@ankitm), many thanks.

Also add an exception catcher on `std::runtime_error` in
`bl_locale_set()`, since in OSX catching the ancestor `std::exception`
does not work with `boost::locale::conv::conversion_error` and the like
for some reasons.

Reviewed By: #platform_macos, brecht

Maniphest Tasks: T88877

Differential Revision: https://developer.blender.org/D13019

Commit Details:

Full Hash: 8e237d83f2138fb94933f971a070a0552f1f506a
Parent Commit: 77104bf
Committed By: Philipp Oeser
Lines Changed: +18, -1

2 Modified Paths:

/intern/locale/boost_locale_wrapper.cpp (+7, -0) (Diff)
/intern/locale/osx_user_locale.mm (+11, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021