GhosttyI18n: fix build on freebsd with zig 0.16

This commit is contained in:
Siva Mahadevan
2026-07-27 12:38:59 -04:00
parent 5a35415a5d
commit 10e6ace6b6

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;