From 20cbee537006a0cc7858a5891b5a41e61803dc98 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 14 Nov 2022 10:02:48 -0800 Subject: [PATCH] locale always requires libc --- src/os/locale.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/locale.zig b/src/os/locale.zig index 9d4df4a63..3e70430a8 100644 --- a/src/os/locale.zig +++ b/src/os/locale.zig @@ -7,12 +7,13 @@ const log = std.log.scoped(.os); /// Ensure that the locale is set. pub fn ensureLocale() void { + assert(builtin.link_libc); + // On macOS, pre-populate the LANG env var with system preferences. // When launching the .app, LANG is not set so we must query it from the // OS. When launching from the CLI, LANG is usually set by the parent // process. if (comptime builtin.target.isDarwin()) { - assert(builtin.link_libc); if (std.os.getenv("LANG") == null) { setLangFromCocoa(); }