aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/rust-1.45-linker-locale.patch
blob: 40220e8e777d9ec10b953787bd38539aff4602df (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Patch will be included upstream in 1.47: https://github.com/rust-lang/rust/pull/74416
diff --git a/src/librustc_codegen_ssa/back/linker.rs b/src/librustc_codegen_ssa/back/linker.rs
index e64aafa599f..12575ac4358 100644
--- a/src/librustc_codegen_ssa/back/linker.rs
+++ b/src/librustc_codegen_ssa/back/linker.rs
@@ -28,7 +28,7 @@ use rustc_target::spec::{LinkOutputKind, LinkerFlavor, LldFlavor};
 pub fn disable_localization(linker: &mut Command) {
     // No harm in setting both env vars simultaneously.
     // Unix-style linkers.
-    linker.env("LC_ALL", "C");
+    linker.env("LC_ALL", "en_US.UTF-8");
     // MSVC's `link.exe`.
     linker.env("VSLANG", "1033");
 }
vailability. * guix/zlib.scm: Remove it. * m4/guix.m4 (GUIX_LIBZ_LIBDIR, GUIX_LIBLZ_FILE_NAME): Remove them. * tests/lzlib.scm: Use (zlib) instead of (guix zlib) and (lzlib) instead of (guix lzlib), and do not check for zlib and lzlib availability. * tests/publish.scm: Ditto. * tests/substitute.scm: Do not check for lzlib availability. * tests/utils.scm: Ditto. * tests/zlib.scm: Remove it. 2019-06-20utils: canonical-newline-port: Fix handling of carriage return at buffer end.Robert Vollmert Prior to this change the added test fails for me locally at byte 1024. It might depend on some default buffer sizes. Fixes <https://bugs.gnu.org/35863>. * tests/utils.scm ("canonical-newline-port-1024"): Add test. * guix/utils.scm (canonical-newline-port): Correct comments on CR/LF. Remove CR even when they're at the end of the buffer. Signed-off-by: Ludovic Courtès <ludo@gnu.org> 2019-05-27utils: Support compression and decompression with lzip.Ludovic Courtès * guix/utils.scm (lzip-port): New procedure. (decompressed-port, compressed-port, compressed-output-port): Add 'lzip case. * tests/utils.scm <top level>: Call 'test-compression/decompression' for 'lzip as well. 2019-05-27utils: Test 'compressed-port' and 'decompressed-port' for both gzip and xz.Ludovic Courtès * tests/utils.scm (test-compression/decompression): New procedure. <top level>: Call it for both 'xz and 'gzip. 2018-05-13utils: Add 'version-prefix?'.Ludovic Courtès * guix/utils.scm (version-prefix?): New procedure. * tests/utils.scm ("version-prefix?"): New test. 2018-05-10union: Add 'relative-file-name'.Ludovic Courtès * guix/build/union.scm (%not-slash): New variable. (relative-file-name): New procedure. * tests/union.scm (test-relative-file-name): New macro and tests.