besser82 pushed to swig (f20). "A patch to fix guile locale"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 2 08:48:56 UTC 2015


>From b1604a3cc8b0df5b9f2d518c0492ab83ec7ba2a9 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion at cora.nwra.com>
Date: Sat, 1 Mar 2014 10:13:24 -0700
Subject: A patch to fix guile locale


diff --git a/swig-guile.patch b/swig-guile.patch
new file mode 100644
index 0000000..3b9cdf4
--- /dev/null
+++ b/swig-guile.patch
@@ -0,0 +1,10 @@
+diff -up swig-2.0.12/Examples/test-suite/guile/li_std_string_runme.scm.guile swig-2.0.12/Examples/test-suite/guile/li_std_string_runme.scm
+--- swig-2.0.12/Examples/test-suite/guile/li_std_string_runme.scm.guile	2014-02-09 15:09:05.000000000 -0700
++++ swig-2.0.12/Examples/test-suite/guile/li_std_string_runme.scm	2014-03-01 08:33:41.343216202 -0700
+@@ -5,5 +5,5 @@
+ ; Note: when working with non-ascii strings in guile 2
+ ;       locale must be set explicitly
+ ;       The setlocale call below takes care of that
+-(setlocale LC_ALL "")
++(setlocale LC_ALL "en_US.utf-8")
+ (load "../schemerunme/li_std_string.scm")
diff --git a/swig.spec b/swig.spec
index c563746..1f54f18 100644
--- a/swig.spec
+++ b/swig.spec
@@ -19,6 +19,9 @@ Group:   Development/Tools
 URL:     http://swig.sourceforge.net/
 Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
 Source1: swig.1
+# Upstream patch to fix guile locale
+# https://github.com/swig/swig/pull/139/files
+Patch0:  swig-guile.patch
 Patch1:  swig207-setools.patch
 # Fix the failure on arch x390 during testing
 Patch2:  swig-2.0.10-Fix-x390-build.patch
@@ -60,6 +63,7 @@ This package contains documentation for SWIG and useful examples
 %prep
 %setup -q -n swig-%{version}
 
+%patch0 -p1 -b .guile
 %patch1 -p1 -b .setools
 %patch2 -p1 -b .x390
 
@@ -129,6 +133,7 @@ gzip %{buildroot}%{_mandir}/man1/$(basename %{SOURCE1})
 %changelog
 * Fri Feb 28 2014 Orion Poplawski <orion at cora.nwra.com> - 2.0.12-1
 - Update to 2.0.12
+- A patch to fix guile locale
 
 * Wed Oct 09 2013 Jitka Plesnikova <jplesnik at redhat.com> - 2.0.11-2
 - Use bconds for enabling testsuite
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/swig.git/commit/?h=f20&id=b1604a3cc8b0df5b9f2d518c0492ab83ec7ba2a9


More information about the scm-commits mailing list