mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-31 04:39:01 +00:00
GhosttyI18n: fix build on freebsd with zig 0.16
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user