Activity log for bug #581207

Date Who What changed Old value New value Message
2010-05-16 07:43:12 M. Vefa Bicakci bug added bug
2010-05-16 07:43:12 M. Vefa Bicakci attachment added The mentioned patch which fixes the bug. http://launchpadlibrarian.net/48532242/software_center-turkish_locale_fix.diff
2010-05-16 07:52:43 Omer Akram tags center locale software turkish ubuntu patch
2010-05-16 15:29:48 Olivier Tilloy software-center (Ubuntu): status New Confirmed
2010-05-16 15:41:31 Olivier Tilloy branch linked lp:~osomon/software-center/turkish_locale
2010-05-17 07:46:49 Michael Vogt nominated for series Ubuntu Lucid
2010-05-17 07:46:49 Michael Vogt bug task added software-center (Ubuntu Lucid)
2010-05-17 07:48:19 Launchpad Janitor branch linked lp:~ubuntu-core-dev/software-center/lucid
2010-05-17 07:50:29 Launchpad Janitor branch linked lp:software-center
2010-05-17 07:50:31 Michael Vogt software-center (Ubuntu): status Confirmed Fix Committed
2010-05-17 07:50:41 Michael Vogt software-center (Ubuntu Lucid): status New Confirmed
2010-05-17 07:50:51 Michael Vogt software-center (Ubuntu): importance Undecided Medium
2010-05-17 07:50:56 Michael Vogt software-center (Ubuntu Lucid): importance Undecided Medium
2010-05-17 07:55:07 Michael Vogt software-center (Ubuntu Lucid): status Confirmed In Progress
2010-05-17 10:20:15 M. Vefa Bicakci attachment added Patch which replaces lower as well as upper. http://launchpadlibrarian.net/48595957/software_center-turkish_locale_fix-with_lower.diff
2010-05-17 14:34:17 M. Vefa Bicakci attachment added A script which demonstrates the problem of using Turkish capitalization rules. http://launchpadlibrarian.net/48607325/turkish_locale_test.py
2010-05-20 18:40:10 Launchpad Janitor software-center (Ubuntu): status Fix Committed Fix Released
2010-05-20 19:14:17 Launchpad Janitor branch linked lp:ubuntu/software-center
2010-06-01 10:42:27 Martin Pitt software-center (Ubuntu Lucid): status In Progress Fix Committed
2010-06-01 10:42:34 Martin Pitt tags patch patch verification-needed
2010-06-04 08:38:16 Launchpad Janitor branch linked lp:ubuntu/lucid-proposed/software-center
2010-06-14 22:25:40 Jean-Baptiste Lallement description Binary package hint: software-center Hello, After trying out Ubuntu 10.04 with a Turkish locale (tr_TR.UTF-8), I was sad to notice that when update-software-center is run by a dpkg trigger or a manual command line interaction, it produces errors similar to the following: (I was able to reproduce this with software-center 2.0.3.) === 8< === WARNING:root:error processing: /usr/share/app-install/desktop/cecilia.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/anjal.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/projectl.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kde4_kate.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kde4_kteatime.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kadu.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/avidemux-qt.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/pydance.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/etw.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/qtpfsgui.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kde_kalcul.desktop 'WEIGHT_DESKTOP_GENERiCNAME' === >8 === The end result of this is that a lot of the installed software cannot be seen in the Ubuntu Software Center, which is a very big usability problem for people using a Turkish locale. (After running update-software-center in the English locale [en_US.UTF-8], one can see 67 programs in the "Installed Software" menu. With the Turkish locale [tr_TR.UTF-8], this number drops to 40.) Notice in the output above that the "i" is not capitalized in the keyword "WEIGHT_DESKTOP_GENERiCNAME". This is a very common problem with programs which run in the Turkish locale, but that expect the capitalization of "i" to work as in the English alphabet (i.e. in ASCII). Unfortunately, in the Turkish alphabet the capitalization rules of the "i"s are different: === 8< === English: lowercase: i uppercase: I Turkish: Dotless "i": lowercase: ı (idotless) uppercase: I "i" with dot: lowercase: i uppercase: İ (Idotabove) === >8 === The source of this problem can be seen in the following file: === /usr/share/software-center/softwarecenter/db/update.py === 191 # now add search data from the desktop file 192 for key in ["GenericName","Comment"]: 193 if not parser.has_option_desktop(key): 194 continue 195 s = parser.get_desktop(key) 196 w = globals()["WEIGHT_DESKTOP_"+key.replace(" ","").upper()] 197 term_generator.index_text_without_positions(s, w) === /usr/share/software-center/softwarecenter/db/update.py === As you can see, on line 196, the string "key", which contains ASCII data such as "GenericName", is capitalized using the "upper" function. Because the data to be operated on is ASCII, but the locale is a Turkish locale, this causes problems when one tries to capitalize an "i". The attached patch fixes this issue by creating a function called ascii_upper which uses the the "string.maketrans" and "string.translate" functions and the "string.ascii_lowercase" and "string.ascii_uppercase" constants to convert mixed case ASCII strings to uppercase ASCII strings using English capitalization rules. Dear Ubuntu Software Center maintainer: Because this is a high profile bug that affects everyone running in a Turkish locale, and because its fix is relatively simple, is there any way we can get this bug fixed in Ubuntu 10.04 LTS ? Because this is a LTS release, I really don't want Turkish users to have a suboptimal experience during the 3 years this release is supported. I realize that I should have tested an alpha or beta version of Ubuntu 10.04 LTS and reported this bug earlier. I apologize for not doing this. Regards, M. Vefa Bicakci Binary package hint: software-center Hello, After trying out Ubuntu 10.04 with a Turkish locale (tr_TR.UTF-8), I was sad to notice that when update-software-center is run by a dpkg trigger or a manual command line interaction, it produces errors similar to the following: (I was able to reproduce this with software-center 2.0.3.) === 8< === WARNING:root:error processing: /usr/share/app-install/desktop/cecilia.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/anjal.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/projectl.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kde4_kate.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kde4_kteatime.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kadu.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/avidemux-qt.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/pydance.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/etw.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/qtpfsgui.desktop 'WEIGHT_DESKTOP_GENERiCNAME' WARNING:root:error processing: /usr/share/app-install/desktop/kde_kalcul.desktop 'WEIGHT_DESKTOP_GENERiCNAME' === >8 === The end result of this is that a lot of the installed software cannot be seen in the Ubuntu Software Center, which is a very big usability problem for people using a Turkish locale. (After running update-software-center in the English locale [en_US.UTF-8], one can see 67 programs in the "Installed Software" menu. With the Turkish locale [tr_TR.UTF-8], this number drops to 40.) Notice in the output above that the "i" is not capitalized in the keyword "WEIGHT_DESKTOP_GENERiCNAME". This is a very common problem with programs which run in the Turkish locale, but that expect the capitalization of "i" to work as in the English alphabet (i.e. in ASCII). Unfortunately, in the Turkish alphabet the capitalization rules of the "i"s are different: === 8< === English:  lowercase: i  uppercase: I Turkish:  Dotless "i":   lowercase: ı (idotless)   uppercase: I  "i" with dot:   lowercase: i   uppercase: İ (Idotabove) === >8 === The source of this problem can be seen in the following file: === /usr/share/software-center/softwarecenter/db/update.py === 191 # now add search data from the desktop file 192 for key in ["GenericName","Comment"]: 193 if not parser.has_option_desktop(key): 194 continue 195 s = parser.get_desktop(key) 196 w = globals()["WEIGHT_DESKTOP_"+key.replace(" ","").upper()] 197 term_generator.index_text_without_positions(s, w) === /usr/share/software-center/softwarecenter/db/update.py === As you can see, on line 196, the string "key", which contains ASCII data such as "GenericName", is capitalized using the "upper" function. Because the data to be operated on is ASCII, but the locale is a Turkish locale, this causes problems when one tries to capitalize an "i". The attached patch fixes this issue by creating a function called ascii_upper which uses the the "string.maketrans" and "string.translate" functions and the "string.ascii_lowercase" and "string.ascii_uppercase" constants to convert mixed case ASCII strings to uppercase ASCII strings using English capitalization rules. Dear Ubuntu Software Center maintainer: Because this is a high profile bug that affects everyone running in a Turkish locale, and because its fix is relatively simple, is there any way we can get this bug fixed in Ubuntu 10.04 LTS ? Because this is a LTS release, I really don't want Turkish users to have a suboptimal experience during the 3 years this release is supported. I realize that I should have tested an alpha or beta version of Ubuntu 10.04 LTS and reported this bug earlier. I apologize for not doing this. Regards, M. Vefa Bicakci TEST CASE: 1. install turkish locale: $ sudo apt-get install language-pack-gnome-tr-base 2. from a terminal run the following command and note any error message: $ sudo LC_ALL=tr_TR.UTF8 update-software-center 3. run software-center 4. Select "installed software" and note the number of items on the status bar 5. from a terminal run the following command: $ sudo LC_ALL=C update-software-center 6. run software-center 7. Select "installed software" and note the number of items on the status bar 8. Compare the number of items in steps 4 and 7 VERIFICATION FAILED: 1. install software-center from -updates 2. The following messages are printed on the terminal output: WARNING:root:error processing: /usr/share/app-install/desktop/qtpfsgui.desktop 'WEIGHT_DESKTOP_GENERiCNAME' 3. The numbers of items between tr_TR.utf8 and C locales are differents VERIFICATION SUCCEEDED: 1. install software-center from -proposed (2.0.5) 2. No error message is printed on the terminal 3. The numbers of items are the same.
2010-06-14 22:28:06 Jean-Baptiste Lallement tags patch verification-needed patch verification-done
2010-06-15 07:41:36 Launchpad Janitor software-center (Ubuntu Lucid): status Fix Committed Fix Released
2011-09-19 21:20:23 Ubuntu Foundations Team Bug Bot tags patch verification-done patch testcase verification-done