From a209494b432308cd0dd417a28e91c262a59e9b1e Mon Sep 17 00:00:00 2001 From: -k Date: Tue, 17 Jun 2025 11:18:19 -0400 Subject: [PATCH] build: comment `locale` trim --- src/build/GhosttyI18n.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/build/GhosttyI18n.zig b/src/build/GhosttyI18n.zig index dce96628f..e0f6b5611 100644 --- a/src/build/GhosttyI18n.zig +++ b/src/build/GhosttyI18n.zig @@ -22,6 +22,9 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyI18n { defer steps.deinit(); inline for (internal_os.i18n.locales) |locale| { + // There is no encoding suffix in the LC_MESSAGES path on FreeBSD, + // so we need to remove it from `locale` to have a correct destination string. + // (/usr/local/share/locale/en_AU/LC_MESSAGES) const target_locale = comptime if (builtin.target.os.tag == .freebsd) std.mem.trimRight(u8, locale, ".UTF-8") else