conf.set_quoted('NTP_SERVERS', ntp_servers)
default_locale = get_option('default-locale')
-if default_locale == ''
- if not meson.is_cross_build()
- choose_default_locale_sh = find_program('tools/choose-default-locale.sh')
- default_locale = run_command(choose_default_locale_sh,
- check : true).stdout().strip()
- else
- default_locale = 'C.UTF-8'
- endif
-endif
conf.set_quoted('SYSTEMD_DEFAULT_LOCALE', default_locale)
localegen_path = get_option('localegen-path')
description : 'the default value for KillUserProcesses= setting')
option('gshadow', type : 'boolean',
description : 'support for shadow group')
-option('default-locale', type : 'string', value : '',
+option('default-locale', type : 'string', value : 'C.UTF-8',
description : 'default locale used when /etc/locale.conf does not exist')
option('localegen-path', type : 'string', value : '',
description : 'absolute path to the locale-gen binary in case the system is using locale-gen')
+++ /dev/null
-#!/bin/sh
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -e
-
-# Fedora uses C.utf8 but Debian uses C.UTF-8
-if locale -a | grep -xq -E 'C\.(utf8|UTF-8)'; then
- echo 'C.UTF-8'
-elif locale -a | grep -xqF 'en_US.utf8'; then
- echo 'en_US.UTF-8'
-else
- echo 'C'
-fi