File: fix-tests.patch

package info (click to toggle)
rust-rustybuzz 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,600 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/examples/shape.rs
+++ b/examples/shape.rs
@@ -268,7 +268,7 @@
 
 fn system_language() -> rustybuzz::Language {
     unsafe {
-        libc::setlocale(libc::LC_ALL, b"\0" as *const _ as *const i8);
+        libc::setlocale(libc::LC_ALL, b"\0" as *const _ as *const libc::c_char);
         let s = libc::setlocale(libc::LC_CTYPE, std::ptr::null());
         let s = std::ffi::CStr::from_ptr(s);
         let s = s.to_str().expect("locale must be ASCII");