make sure the C.UTF-8 locale is installed on the system

This commit is contained in:
Kamila Łopuszańska 2025-07-11 16:04:54 +02:00 committed by Niels De Graef
parent 43c23270a6
commit 91e87a6d1b

View file

@ -218,6 +218,15 @@ endif
files(iso_639_xml, iso_3166_xml) # Check to make sure these exist
# Make sure the locale C.UTF-8 is installed on the system
c_utf8_check = run_command('locale', '-a', check: true).stdout()
have_c_utf8 = 'C.utf8' in c_utf8_check.split('\n')
if not have_c_utf8
warning('C.utf8 locale not available on this system.')
endif
# Post-install script
gnome.post_install(
gtk_update_icon_cache: true,