fix: print a message to stderr if setlocale fails

This commit is contained in:
CJ van den Berg 2024-09-03 17:34:12 +02:00
parent ea70d45363
commit 75b1c85723
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -104,7 +104,8 @@ pub fn main() anyerror!void {
}
if (c.setlocale(c.LC_ALL, "") == null) {
return error.SetLocaleFailed;
try std.io.getStdErr().writer().print("Failed to set locale. Is your locale valid?\n", .{});
exit(1);
}
if (res.args.@"debug-dump-on-error" != 0)