Alexander Batischev
Alexander Batischev
I tried to approach this from an opposite direction: write a tiny C library, wrap it in a Rust crate, and use it from a different Rust crate. The result...
I give up. As documented above, I failed to create a minimal reproducible example, so I won't be reporting this upstream; that would have been akin to asking them to...
A couple suggestions [from Mastodon](https://functional.cafe/@minoru/108675619488634127): - try 1.62.1 that was released a few days ago -- I did, it still segfaults - check the order in which libraries are linked...
Thanks! This indeed helps with the example, and works even without `+whole-archive`. It also helps with tests: if I stick that `extern` somewhere in the `tests` sub-module in gettext-rs, the...
#75 didn't turn *all* tests into integration tests, so let's keep this open for now.
I wonder if `Into` will work, i.e. will it accept `None` and `"hello"` and `String::from("hello")`? I don't have time to check it right now though; just writing this down.
I suspect that `Application::new` calls `settextdomain`, overriding the results of `TextDomain::new`. You could swap the two calls to fix this, or find out if GTK lets you configure the domain...
FWIW, *all* the provided examples work for me on Linux. ([This one](https://github.com/Koka/gettext-rs/issues/95#issuecomment-1128577142) contains a typo, should say "en_US.UTF-8" rather than "en_EN.UTF-8".) I don't have a Windows machine to test this,...
Got it. Since the C program doesn't misbehave, I'm convinced that gettext-sys or gettext-rs is at fault here, but I don't see how. I'd try a debugger to see what...
Sorry I'm so slow to respond! I'm kind of swamped lately. That stacktrace is in line with my hypothesis about a race between DLLs. I have no idea how to...