From 4a472d79543e42bb2ddfd2b4959b98d27ec4e1fd Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sun, 12 Jun 2022 03:30:54 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20oops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.cpp b/src/utils.cpp index ecc462d..58feda8 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -355,6 +355,8 @@ void set_hostname(const std::string_view& hostname) noexcept { void set_locale(const std::string_view& locale) noexcept { spdlog::info("Selected locale: {}", locale); #ifdef NDEVENV + auto* config_instance = Config::instance(); + auto& config_data = config_instance->data(); const auto& mountpoint = std::get(config_data["MOUNTPOINT"]); const auto& locale_config_path = fmt::format(FMT_COMPILE("{}/etc/locale.conf"), mountpoint); const auto& locale_gen_path = fmt::format(FMT_COMPILE("{}/etc/locale.gen"), mountpoint);