[iok/f16] Resolves:rh#803227- Fix default locale code set function

pnemade pnemade at fedoraproject.org
Wed Mar 14 13:04:10 UTC 2012


commit 464d75c82ea7e7e813b4d19595981bbef25658a2
Author: Parag Nemade <pnemade at redhat.com>
Date:   Wed Mar 14 18:34:03 2012 +0530

    Resolves:rh#803227- Fix default locale code set function

 iok-2.1.0-default-locale-code-fix.patch |   11 +++++++++++
 iok.spec                                |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/iok-2.1.0-default-locale-code-fix.patch b/iok-2.1.0-default-locale-code-fix.patch
new file mode 100644
index 0000000..b242963
--- /dev/null
+++ b/iok-2.1.0-default-locale-code-fix.patch
@@ -0,0 +1,11 @@
+--- src/interface.c.old	2012-03-12 21:38:32.591538820 +0530
++++ src/interface.c	2012-03-14 12:24:45.979848555 +0530
+@@ -10874,7 +10874,7 @@
+         if(strcmp(ll[cn].locale_code,ltoken)==0)
+         {
+             adv_mode=0;
+-            if(ll[cn].script_code != NULL) {
++            if(strcmp(ll[cn].script_code,"\0") != 0) {
+                 strcat(ltoken,"-");
+                 strcat(ltoken,ll[cn].script_code);
+             }
diff --git a/iok.spec b/iok.spec
index 20e1ae2..2a434f3 100644
--- a/iok.spec
+++ b/iok.spec
@@ -1,11 +1,12 @@
 Name:           iok
 Version:        2.1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Indic Onscreen Virtual Keyboard
 Group:          Applications/System
 License:        GPLv2+
 URL:            http://iok.sourceforge.net
 Source0:        https://fedorahosted.org/releases/i/o/iok/%{name}-%{version}.tar.gz
+Patch0:         iok-2.1.0-default-locale-code-fix.patch
 BuildRequires:  desktop-file-utils libXtst-devel
 BuildRequires:  gtk3-devel gettext libxml2-devel
 BuildRequires:  intltool unique3-devel
@@ -18,6 +19,7 @@ can even try to parse non-inscript keymaps and show them in iok.
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 %configure
@@ -60,6 +62,9 @@ fi
 
 
 %changelog
+* Wed Mar 14 2012 Parag Nemade <pnemade AT redhat DOT com>- 2.1.0-2
+- Resolves:rh#803227- Fix default locale code set function
+
 * Tue Mar 13 2012 Parag Nemade <pnemade AT redhat DOT com>- 2.1.0-1
 - Update to 2.1.0 release
 


More information about the scm-commits mailing list