Răsfoiți Sursa

Add patch 02_cgit_c: support building under different locale. Closes: #799076

Jelmer Vernooij 9 ani în urmă
părinte
comite
e7b2613be8
4 a modificat fișierele cu 16 adăugiri și 0 ștergeri
  1. 2 0
      debian/changelog
  2. 12 0
      debian/patches/02_cgit_c
  3. 1 0
      debian/patches/series
  4. 1 0
      dulwich/tests/compat/utils.py

+ 2 - 0
debian/changelog

@@ -2,6 +2,8 @@ dulwich (0.11.2-1) UNRELEASED; urgency=medium
 
   [ Jelmer Vernooij ]
   * New upstream release.
+  * Add patch 02_cgit_c: support building under different locale.
+    Closes: #799076
 
   [ Scott Kitterman ]
   * Team upload.

+ 12 - 0
debian/patches/02_cgit_c

@@ -0,0 +1,12 @@
+diff --git a/dulwich/tests/compat/utils.py b/dulwich/tests/compat/utils.py
+index 5142169..d6d1f7f 100644
+--- a/dulwich/tests/compat/utils.py
++++ b/dulwich/tests/compat/utils.py
+@@ -124,6 +124,7 @@ def run_git(args, git_path=_DEFAULT_GIT, input=None, capture_stdout=False,
+     """
+ 
+     env = get_safe_env(popen_kwargs.pop('env', None))
++    env['LC_ALL'] = env['LANG'] = 'C'
+ 
+     args = [git_path] + args
+     popen_kwargs['stdin'] = subprocess.PIPE

+ 1 - 0
debian/patches/series

@@ -1 +1,2 @@
 01_refs_unicode
+02_cgit_c

+ 1 - 0
dulwich/tests/compat/utils.py

@@ -124,6 +124,7 @@ def run_git(args, git_path=_DEFAULT_GIT, input=None, capture_stdout=False,
     """
 
     env = get_safe_env(popen_kwargs.pop('env', None))
+    env['LC_ALL'] = env['LANG'] = 'C'
 
     args = [git_path] + args
     popen_kwargs['stdin'] = subprocess.PIPE