Skip to content

system/region: Preview measurement format in current locale

The Formats preview tries to find the measurement format of the locale to preview, and then displays it. However, it displays the text in the default locale, instead of in the real current locale, as newlocale () with base = (locale_t) 0 will use the default locale.

This is fixed by switching back to the real locale before setting the label text.

Fixes #2458 (closed)

Before After
Screenshot_from_2023-11-21_20-21-12 Screenshot_from_2023-11-21_20-22-17

This is easy to backport to Gnome 44 and 45, but there Region was a separate panel.

Edited by Matthijs Velsink

Merge request reports