rpms/ibus-table/F-10 ibus-table-1.1.0.20090316-4.candidate_order.patch, NONE, 1.1 ibus-table.spec, 1.13, 1.14

Caius Chance cchance at fedoraproject.org
Mon Jun 15 00:27:22 UTC 2009


Author: cchance

Update of /cvs/pkgs/rpms/ibus-table/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5156

Modified Files:
	ibus-table.spec 
Added Files:
	ibus-table-1.1.0.20090316-4.candidate_order.patch 
Log Message:
Fixed candidate order.


ibus-table-1.1.0.20090316-4.candidate_order.patch:

--- NEW FILE ibus-table-1.1.0.20090316-4.candidate_order.patch ---
diff -up ibus-table-1.1.0.20090316/engine/table.py.2-candidate_order ibus-table-1.1.0.20090316/engine/table.py
--- ibus-table-1.1.0.20090316/engine/table.py.2-candidate_order	2009-06-15 09:47:54.000000000 +1000
+++ ibus-table-1.1.0.20090316/engine/table.py	2009-06-15 09:49:39.000000000 +1000
@@ -26,6 +26,7 @@ __all__ = (
 )
 
 import os
+import locale
 import ibus
 from ibus import Property
 from ibus import keysyms
@@ -102,7 +103,8 @@ class editor(object):
     def get_chinese_mode (self):
         '''Use LC_CTYPE in your box to determine the _chinese_mode'''
         try:
-            __lc = os.environ['LC_CTYPE'].split('.')[0].lower()
+	    if locale.setlocale(locale.LC_ALL, ''):
+                __lc = locale.getlocale()[0].lower()
             if __lc.find('zh_') == 0:
                 # this is a zh_XX
                 __place =__lc.split('_')[1]


Index: ibus-table.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ibus-table/F-10/ibus-table.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- ibus-table.spec	12 Jun 2009 00:35:29 -0000	1.13
+++ ibus-table.spec	15 Jun 2009 00:26:52 -0000	1.14
@@ -1,6 +1,6 @@
 Name:             ibus-table
 Version:          1.1.0.20090610
-Release:          3%{?dist}
+Release:          4%{?dist}
 Summary:          The Table engine for IBus platform
 License:          LGPLv2+
 Group:            System Environment/Libraries
@@ -9,6 +9,7 @@ URL:              http://code.google.com
 #Source0:          http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
 Source0:          http://ibus.googlecode.com/files/%{name}-1.1.0.20090316.tar.gz
 Patch0:           ibus-table-1.1.0.20090316-1.bz490396.no_speedmeter.patch
+Patch1:           ibus-table-1.1.0.20090316-4.candidate_order.patch
 BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:        noarch
 BuildRequires:    ibus-devel > 1.1.0
@@ -34,6 +35,7 @@ This package contains additional tables.
 # directory specified for rollback
 %setup -q -n ibus-table-1.1.0.20090316
 %patch0 -p1
+%patch1 -p1
 
 %build
 ./autogen.sh --disable-static --enable-additional --prefix=%{_prefix}
@@ -122,6 +124,9 @@ ibus-table-createdb -i -n %{_datadir}/ib
 %{_datadir}/%{name}/icons/latex.svg
 
 %changelog
+* Mon Jun 15 2009 Caius 'kaio' Chance <kATkaioDOTme> - 1.1.0.20090610-4.fc10
+- Fixed candidate order.
+
 * Fri Jun 12 2009 Caius 'kaio' Chance <kATkaioDOTme> - 1.1.0.20090610-3.fc10
 - Rebuilt.
 




More information about the fedora-extras-commits mailing list