Bug 520170

Summary: alexandria cannot start in tr_TR.UTF-8 locale
Product: [Fedora] Fedora Reporter: Sertaç Ö. Yıldız <sertacyildiz>
Component: alexandriaAssignee: Mamoru TASAKA <mtasaka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: mtasaka
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: 0.6.5-6.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-31 23:33:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sertaç Ö. Yıldız 2009-08-28 17:54:47 UTC
Description of problem:
Backtrace on start-up, probably due to the 'I' in icon variable name.

Version-Release number of selected component (if applicable):
alexandria-0.6.5-5.fc11

Steps to Reproduce:
1. $ export LANG=tr_TR.UTF-8
2. $ alexandria
  
Actual results:

Message: uninitialized constant Alexandria::UI::Icons::ALEXANDRIA_SMALL
Backtrace:
/usr/lib/ruby/site_ruby/1.8/alexandria/ui/ui_manager.rb:1203:in `setup_window_icons'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui/ui_manager.rb:43:in `initialize'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:56:in `new'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:56:in `initialize'
/usr/lib/ruby/1.8/singleton.rb:94:in `new'
/usr/lib/ruby/1.8/singleton.rb:94:in `instance'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:45:in `start_main_app'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:56:in `main'
/usr/lib/ruby/site_ruby/1.8/alexandria.rb:40:in `main'
/usr/bin/alexandria:29
Release: 0.6.5(0.6.5-5.fc11)


Additional info:
For details about peculiarity of 'I,i' in Turkish, see:
<http://www.i18nguy.com/unicode/turkish-i18n.html>

Comment 1 Mamoru TASAKA 2009-08-28 18:01:50 UTC
Thank you for your report. Your analysis is actually correct.
The problem is in ui/icons.rb:

------------------------------------------------------
    63        def self.load_icon_images
    64          Dir.entries(ICONS_DIR).each do |file|
    65            next unless file =~ /\.png$/    # skip non '.png' files
    66              name = File.basename(file, ".png").upcase <===============
    67            const_set(name, Gdk::Pixbuf.new(File.join(ICONS_DIR, file)))
    68          end
    69        end
-------------------------------------------------------

Comment 2 Mamoru TASAKA 2009-08-28 19:41:30 UTC
Would you tell me if the following works?

http://kojipkgs.fedoraproject.org/packages/alexandria/0.6.5/6.fc11/

Comment 3 Sertaç Ö. Yıldız 2009-08-28 19:53:03 UTC
Works fine, thanks for the prompt response.

Comment 4 Mamoru TASAKA 2009-08-28 20:03:53 UTC
Thank you for confirming!

Comment 5 Fedora Update System 2009-08-28 20:08:40 UTC
alexandria-0.6.5-6.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/alexandria-0.6.5-6.fc11

Comment 6 Fedora Update System 2009-08-28 20:09:22 UTC
alexandria-0.6.5-6.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/alexandria-0.6.5-6.fc10

Comment 7 Fedora Update System 2009-08-31 23:33:12 UTC
alexandria-0.6.5-6.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2009-08-31 23:42:54 UTC
alexandria-0.6.5-6.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.