GhosttyI18n: fix build on freebsd with zig 0.16 (#13485)

This commit is contained in:
Jeffrey C. Ollie
2026-07-27 13:11:39 -05:00
committed by GitHub

View File

@@ -26,7 +26,7 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyI18n {
// 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")
std.mem.trimEnd(u8, locale, ".UTF-8")
else
locale;