Alexander Batischev
Alexander Batischev
My point is: if a string starts with multiple non-break spaces, `isSpace` would return `True` and non-break spaces will be collapsed into a single ordinary space, which is clearly wrong.
Oops! In C, you'd just pass `NULL` into `setlocale`, but our safe bindings prohibit that. For now, you can call `gettext_sys::setlocale(category, std::ptr::null)`, but we should really change the safe wrapper...
`LcMessages` is the right category for this, see https://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html. The returned value is a *locale*, whose format is described in https://www.gnu.org/software/libc/manual/html_node/Locale-Names.html. You need to extract the part before the first...
@ogoffart it is, but I haven't fixed our musl problem (#99) yet, and that blocks all further work.
Okay, I'm back! The assumption that on Linux it's always GNU or musl appears to be wrong: ``` $ rustc --print target-list | grep linux | egrep -v -- '-gnu|-musl'...
@nfisher1226, you're right, it fails with the same error as in #114. Closing. Thank you! As for your change for FreeBSD, it looks good and I'd accept a PR. Please...
`cargo bisect-rustc` doesn't work for this: > error: toolchain 'bisector-ci-ec667fbcfcd29e2b5080f6be04e229356b27e600-x86_64-unknown-linux-gnu' does not support components: bisector-ci-ec667fbcfcd29e2b5080f6be04e229356b27e600-x86_64-unknown-linux-gnu is a custom toolchain I'm now bisecting manually using nightlies.
nightly-2022-04-04 is good, nightly-2022-04-05 is bad. I think this means that the offending commit was merged on 2022-04-04. [There are only 23 PRs merged on that day](https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Amerged+merged%3A2022-04-05). This one looks...
These look much more relevant, but they don't quite fit the date: - https://github.com/rust-lang/rust/pull/95606 - https://github.com/rust-lang/rust/pull/93901 - https://github.com/rust-lang/rust/issues/95561
I created a new reproducer which doesn't involve gettext-rs: ``` $ cargo new gettext-reproducer $ cd gettext-reproducer $ cargo add gettext-sys $ cat src/main.rs use std::ffi::CString; // #[link(name = "pthread",...