fix: load case data early on startup instead of on demand

This is to avoid an issue with the decompressor causing heap
corruption on macos.

closes #169
This commit is contained in:
CJ van den Berg 2025-02-12 18:09:14 +01:00
parent 70a33f1ebf
commit 9f2e3bf4b4
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 19 additions and 15 deletions

View file

@ -41,6 +41,8 @@ pub fn main() anyerror!void {
}
const a = std.heap.c_allocator;
const case_data = @import("Buffer").unicode.get_case_data();
_ = case_data; // no need to free case_data as it is globally static
const Flags = struct {
pub const description =