rpms/alexandria/F-10 alexandria-0.6.5-crash-in-turkish.patch, NONE, 1.1 alexandria.spec, 1.30, 1.31

Mamoru Tasaka mtasaka at fedoraproject.org
Fri Aug 28 19:57:58 UTC 2009


Author: mtasaka

Update of /cvs/extras/rpms/alexandria/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14089/F-10

Modified Files:
	alexandria.spec 
Added Files:
	alexandria-0.6.5-crash-in-turkish.patch 
Log Message:
* Sat Aug 28 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.6.5-6
- Fix crash on startup in tr_TR.UTF-8 (bug 520170)


alexandria-0.6.5-crash-in-turkish.patch:
 icons.rb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- NEW FILE alexandria-0.6.5-crash-in-turkish.patch ---
Index: lib/alexandria/ui/icons.rb
===================================================================
--- lib/alexandria/ui/icons.rb	(revision 1087)
+++ lib/alexandria/ui/icons.rb	(working copy)
@@ -63,7 +63,9 @@
       def self.load_icon_images
         Dir.entries(ICONS_DIR).each do |file|
           next unless file =~ /\.png$/    # skip non '.png' files
-            name = File.basename(file, ".png").upcase
+            # Don't use upcase and use tr instead
+            # For example in Turkish the upper case of 'i' is still 'i'.
+            name = File.basename(file, ".png").tr('a-z', 'A-Z')
           const_set(name, Gdk::Pixbuf.new(File.join(ICONS_DIR, file)))
         end
       end


Index: alexandria.spec
===================================================================
RCS file: /cvs/extras/rpms/alexandria/F-10/alexandria.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -p -r1.30 -r1.31
--- alexandria.spec	27 Aug 2009 02:48:14 -0000	1.30
+++ alexandria.spec	28 Aug 2009 19:57:58 -0000	1.31
@@ -5,7 +5,7 @@
 %define		majorver	0.6.5
 %undefine		minorver	
 
-%define		fedorarel	5
+%define		fedorarel	6
 %define		rel		%{?minorver:0.}%{fedorarel}%{?minorver:.%minorver}
 
 
@@ -32,6 +32,10 @@ Patch4:		alexandria-0.6.5-search-result-
 # contain Author item
 # ref: alexandria-Bugs-27000
 Patch5:		alexandria-0.6.5-deastore-author-missing.patch
+# Alexandria crashes in tr_TR.UTF-8 on startup
+# RH bug 520170
+# Must report upstream
+Patch6:		alexandria-0.6.5-crash-in-turkish.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:	noarch
@@ -85,6 +89,7 @@ Alexandria is a GNOME application to hel
 %patch3 -p0 -b .glib
 %patch4 -p0 -b .sanity
 %patch5 -p0 -b .deastore
+%patch6 -p0 -b .tr_TR
 
 # Embed Fedora EVR
 %{__sed} -i.evr \
@@ -211,6 +216,9 @@ exit 0
 %{_datadir}/icons/hicolor/*/apps/%{name}.*
 
 %changelog
+* Sat Aug 28 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.6.5-6
+- Fix crash on startup in tr_TR.UTF-8 (bug 520170)
+
 * Thu Aug 27 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.6.5-5
 - Add sanity check for invalid search result, now using upstream patch
 - Fix DeaStore provider where search result contains no Author




More information about the fedora-extras-commits mailing list