mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
- Update libxev dependency
- Fixup macos compile error
This commit is contained in:

committed by
Mitchell Hashimoto

parent
232df8de8f
commit
9a5322eaf4
@ -5,8 +5,8 @@
|
|||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
// Zig libs
|
// Zig libs
|
||||||
.libxev = .{
|
.libxev = .{
|
||||||
.url = "https://github.com/kcbanner/libxev/archive/d71ddeb19c6697875c2e0e68a49d04c05bc26199.tar.gz",
|
.url = "https://github.com/mitchellh/libxev/archive/1b46c2d6f32754a3029d1863275dd0f877163831.tar.gz",
|
||||||
.hash = "1220a26265c30f5677ce28daf04afbd7a6ef5a17f5d3b5506f767fdfee7dc4225d2b",
|
.hash = "12208dc0796bffa6ea9edb60193108e34f835f35fc152e853717aca2b13ba17f3be2",
|
||||||
},
|
},
|
||||||
.mach_glfw = .{
|
.mach_glfw = .{
|
||||||
.url = "https://github.com/hexops/mach-glfw/archive/16dc95cc7f74ebbbdd848d9a2c3cc4afc5717708.tar.gz",
|
.url = "https://github.com/hexops/mach-glfw/archive/16dc95cc7f74ebbbdd848d9a2c3cc4afc5717708.tar.gz",
|
||||||
|
@ -21,8 +21,10 @@ pub fn ensureLocale(alloc: std.mem.Allocator) !void {
|
|||||||
// process.
|
// process.
|
||||||
if (comptime builtin.target.isDarwin()) {
|
if (comptime builtin.target.isDarwin()) {
|
||||||
// Set the lang if it is not set or if its empty.
|
// Set the lang if it is not set or if its empty.
|
||||||
if (lang.len == 0) {
|
if (lang) |l| {
|
||||||
setLangFromCocoa();
|
if (l.len == 0) {
|
||||||
|
setLangFromCocoa();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,7 +100,7 @@ fn setLangFromCocoa() void {
|
|||||||
log.info("detected system locale={s}", .{env_value});
|
log.info("detected system locale={s}", .{env_value});
|
||||||
|
|
||||||
// Set it onto our environment
|
// Set it onto our environment
|
||||||
if (internal_os.setEnv("LANG", env_value.ptr) < 0) {
|
if (internal_os.setEnv("LANG", env_value) < 0) {
|
||||||
log.err("error setting locale env var", .{});
|
log.err("error setting locale env var", .{});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user