Blender Git Commit Log

Git Commits -> Revision be0d5da

Revision be0d5da by Ankit Meel (master)
October 29, 2021, 08:24 (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: be0d5da341cf3f33ba2d7cca8c979abf9d94f683
Parent Commit: 2887d87
Committed By: Bastien Montagne
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021