libreport version: 2.0.8 abrt_version: 2.0.7 cmdline: /usr/bin/python /usr/libexec/openbox-xdg-menu system-settings executable: /usr/libexec/openbox-xdg-menu kernel: 3.2.7-1.fc16.x86_64 reason: openbox-xdg-menu:69:walk_menu:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128) reported_to: file: datos_de_fallos time: dom 04 mar 2012 00:27:38 CLST uid: 1001 username: ronald datos_de_fallos: Text file, 4820 bytes backtrace: :openbox-xdg-menu:69:walk_menu:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128) : :Traceback (most recent call last): : File "/usr/libexec/openbox-xdg-menu", line 98, in <module> : map(walk_menu, menu.getEntries()) : File "/usr/libexec/openbox-xdg-menu", line 69, in walk_menu : escape(icon_attr(entry.DesktopEntry))) :UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128) : :Local variables in innermost frame: :entry: system-config-lvm.desktop event_log: :2012-03-04-00:27:59> Smolt profile successfully saved :2012-03-04-00:28:15> El informe fue añadido a datos_de_fallos smolt_data: : : :General :================================= :UUID: c944d8c1-1a23-4a95-8b53-3dda28f184c0 :SO: Fedora release 16 (Verne) :Nivel de ejecución por defecto: Unknown :Idioma: es_CL.utf8 :Plataforma: x86_64 :BogoMIPS: 3292.44 :Fabricante de CPU: AuthenticAMD :Modelo de CPU: AMD E-450 APU with Radeon(tm) HD Graphics :Paso del UCP: 0 :Familia de UCP: 20 :Número de Modelo de CPU: 2 :Número de CPUs: 2 :Velocidad del CPU: 1650 :Memoria del Sistema: 3574 :Intercambio (swap) del Sistema: 5631 :Vendedor: ASUSTeK Computer Inc. :Sistema: K53BY 1.0 :Factor de forma: Notebook :Kernel: 3.2.7-1.fc16.x86_64 :SELinux Habilitado: 1 :Política de SELinux: targeted :SELinux Obligado: Enforcing :MythTV Remote: Unknown :MythTV Role: Unknown :MythTV Theme: Unknown :MythTV Plugin: :MythTV Tuner: -1 : : :Dispositivos :================================= :(4098:17297:4163:4124) pci, ahci, STORAGE, SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] :(4130:5392:4130:5392) pci, None, HOST/PCI, Pavilion DM1Z-3000 Host bridge :(4098:4884:4163:4124) pci, snd_hda_intel, MULTIMEDIA, Wrestler HDMI Audio [Radeon HD 6250/6310] :(4098:38918:4163:4124) pci, radeon, VIDEO, N/A :(5772:43:4525:26147) pci, ath9k, NETWORK, AR9285 Wireless Network Adapter (PCI-Express) :(4130:5912:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 6 :(4130:5892:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 4 :(4130:5913:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 7 :(4130:5910:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 5 :(4130:5889:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 1 :(4130:5888:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 0 :(4130:5891:0:0) pci, k10temp, HOST/PCI, Family 12h/14h Processor Function 3 :(4130:5890:0:0) pci, None, HOST/PCI, Family 12h/14h Processor Function 2 :(4098:17302:4163:4124) pci, ehci_hcd, USB, SB7x0/SB8x0/SB9x0 USB EHCI Controller :(4098:17303:4163:4124) pci, ohci_hcd, USB, SB7x0/SB8x0/SB9x0 USB OHCI0 Controller :(4332:33128:4163:4124) pci, r8169, ETHERNET, RTL8111/8168B PCI Express Gigabit Ethernet controller :(4098:17312:4098:0) pci, pcieport, PCI/PCI, SB700/SB800 PCI to PCI bridge (PCIE port 0) :(4098:17313:4098:0) pci, pcieport, PCI/PCI, SB700/SB800 PCI to PCI bridge (PCIE port 1) :(4098:17308:4163:4124) pci, pata_atiixp, STORAGE, SB7x0/SB8x0/SB9x0 IDE Controller :(4098:17285:4163:4124) pci, None, SERIAL, SBx00 SMBus Controller :(4098:17309:4163:4124) pci, None, PCI/ISA, SB7x0/SB8x0/SB9x0 LPC host controller :(4098:17283:4163:4124) pci, snd_hda_intel, MULTIMEDIA, SBx00 Azalia (Intel HDA) :(4098:17305:4163:4124) pci, ohci_hcd, USB, SB7x0/SB8x0/SB9x0 USB OHCI2 Controller :(4098:17284:0:0) pci, None, PCI/PCI, SBx00 PCI to PCI Bridge :(4098:17302:4163:4124) pci, ehci_hcd, USB, SB7x0/SB8x0/SB9x0 USB EHCI Controller :(4098:26464:4163:4124) pci, radeon, VIDEO, NI Seymour [AMD Radeon HD 6470M] :(4098:17303:4163:4124) pci, ohci_hcd, USB, SB7x0/SB8x0/SB9x0 USB OHCI0 Controller :(4098:17302:4163:4124) pci, ehci_hcd, USB, SB7x0/SB8x0/SB9x0 USB EHCI Controller :(4098:17303:4163:4124) pci, ohci_hcd, USB, SB7x0/SB8x0/SB9x0 USB OHCI0 Controller :(4130:5394:4130:4660) pci, pcieport, PCI/PCI, Family 14h Processor Root Port : : :Información relacionada con el sistema de archivos :================================= :device mtpt type bsize frsize blocks bfree bavail file ffree favail :------------------------------------------------------------------- :/dev/mapper/vg_alimania-lv_root / ext4 4096 4096 13081819 5707784 5052424 3276800 2492771 2492771 :/dev/sda2 /boot ext4 1024 1024 508745 457196 431596 128016 127751 127751 :/dev/mapper/vg_alimania-lv_home /home ext4 4096 4096 56146150 36188308 33377633 14057472 14043118 14043118 :
Created attachment 567360 [details] File: datos_de_fallos
Created attachment 573148 [details] yet another revision of xdg-menu
*** Bug 808235 has been marked as a duplicate of this bug. ***
*** Bug 808234 has been marked as a duplicate of this bug. ***
openbox-3.5.0-5.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/openbox-3.5.0-5.fc16
Thanks, the patch was included in openbox-3.5.0-5.fc16.
openbox-3.5.0-5.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/openbox-3.5.0-5.fc17
Package openbox-3.5.0-5.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openbox-3.5.0-5.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-4975/openbox-3.5.0-5.fc16 then log in and leave karma (feedback).
*** Bug 812303 has been marked as a duplicate of this bug. ***
openbox-3.5.0-5.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 812685 has been marked as a duplicate of this bug. ***
openbox-3.5.0-5.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
I'm still getting this on F17 KDE. LANG is fr_FR.UTF-8 I've already applied pyxdg fix from Bug 869877 [haliyo@pad ~]$ /usr/libexec/openbox-xdg-menu applications > app.menu /usr/lib/python2.7/site-packages/xdg/Menu.py:1115: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if menuentry.DesktopFileID not in ids: /usr/lib/python2.7/site-packages/xdg/Menu.py:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal """ Traceback (most recent call last): File "/usr/libexec/openbox-xdg-menu", line 101, in <module> map(walk_menu, menu.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 79, in walk_menu '<command>%s</command></action>' % command UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 173: ordinal not in range(128) ____________________________________________________________________________ [haliyo@pad ~]$ /usr/libexec/openbox-xdg-menu preferences > pref.menu Traceback (most recent call last): File "/usr/libexec/openbox-xdg-menu", line 101, in <module> map(walk_menu, menu.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 73, in walk_menu command = re.sub(' -caption "%c"| -caption %c', ' -caption "%s"' % entry_name(entry.DesktopEntry), entry.DesktopEntry.getExec()) File "/usr/lib64/python2.7/re.py", line 151, in sub return _compile(pattern, flags).sub(repl, string, count) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)
Created attachment 634494 [details] app.menu
Created attachment 634495 [details] pref.menu
That's odd. Are you sure in both cases the locale is UTF-8? Can you try to find the offending desktop file? Running it under "strace -eopen" might help.
(In reply to comment #16) > That's odd. Are you sure in both cases the locale is UTF-8? quite sure, yes: [haliyo@pad ~]$ echo $LANG; /usr/libexec/openbox-xdg-menu applications > app.menu fr_FR.UTF-8 /usr/lib/python2.7/site-packages/xdg/Menu.py:1115: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if menuentry.DesktopFileID not in ids: /usr/lib/python2.7/site-packages/xdg/Menu.py:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal """ Traceback (most recent call last): File "/usr/libexec/openbox-xdg-menu", line 101, in <module> map(walk_menu, menu.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 79, in walk_menu '<command>%s</command></action>' % command UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 173: ordinal not in range(128) > > Can you try to find the offending desktop file? Running it under "strace > -eopen" might help. will do that.
Hmm setting LANG=en_US.UTF-8 fixes for preferences but not for applications. I couldn't tell the offending .desktop because in both cases (preferences en_US & fr_FR) there is no diff on any open.desktop. I attach the logs hoping that you'll make make sense out of it than me.
Created attachment 635487 [details] LANG=fr_Fr.UTF-8 LANGUAGE=fr_FR.UTF-8 strace -o strace_FR_prefs.txt -e open /usr/libexec/openbox-xdg-menu preferences > pref.menu [haliyo@pad ~]$ LANG=fr_Fr.UTF-8 LANGUAGE=fr_FR.UTF-8 strace -o strace_FR_prefs.txt -e open /usr/libexec/openbox-xdg-menu preferences > pref.menu Traceback (most recent call last): File "/usr/libexec/openbox-xdg-menu", line 101, in <module> map(walk_menu, menu.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 73, in walk_menu command = re.sub(' -caption "%c"| -caption %c', ' -caption "%s"' % entry_name(entry.DesktopEntry), entry.DesktopEntry.getExec()) File "/usr/lib64/python2.7/re.py", line 151, in sub return _compile(pattern, flags).sub(repl, string, count) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)
Created attachment 635488 [details] LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 strace -o strace_EN_prefs.txt -e open /usr/libexec/openbox-xdg-menu preferences > pref.menu [haliyo@pad ~]$ LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 strace -o strace_EN_prefs.txt -e open /usr/libexec/openbox-xdg-menu preferences > pref.menu [haliyo@pad ~]$
Created attachment 635489 [details] LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 strace -o strace_EN_apps.txt -e open /usr/libexec/openbox-xdg-menu applications > app.menu Traceback (most recent call last): File "/usr/libexec/openbox-xdg-menu", line 101, in <module> map(walk_menu, menu.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 73, in walk_menu command = re.sub(' -caption "%c"| -caption %c', ' -caption "%s"' % entry_name(entry.DesktopEntry), entry.DesktopEntry.getExec()) File "/usr/lib64/python2.7/re.py", line 151, in sub return _compile(pattern, flags).sub(repl, string, count) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128) [haliyo@pad ~]$ LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 strace -o strace_EN_apps.txt -e open /usr/libexec/openbox-xdg-menu applications > app.menu /usr/lib/python2.7/site-packages/xdg/Menu.py:1115: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if menuentry.DesktopFileID not in ids: /usr/lib/python2.7/site-packages/xdg/Menu.py:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal """ Traceback (most recent call last): File "/usr/libexec/openbox-xdg-menu", line 101, in <module> map(walk_menu, menu.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 67, in walk_menu map(walk_menu, entry.getEntries()) File "/usr/libexec/openbox-xdg-menu", line 79, in walk_menu '<command>%s</command></action>' % command UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 173: ordinal not in range(128)
Hm, I can't make any sense of the strace output either. However, looking at your app.menu again, I see that the last (incomplete) entry is "Bibliothèque multimédia Microsoft", so I guess that's the offending entry for the application call. The difference in behavior with different locale could be explained by different localized strings in the entries, like the name or icon.
I'm guessing the problem with the applications menu is due to the wine programs being installed into directories with non-ASCII characters in their names. This resulted in non-ASCII chars ending up in the value of the Exec key in the .desktop file. The desktop entry specification says that the value of the Exec key is a string (not a UTF-8 localestring) and so should be plain ASCII.
Created attachment 635724 [details] example offending .desktop file desktop-file-validate doesn't complain about this .desktop file.
Created attachment 635737 [details] revised openbox-xdg-menu It's openbox-xdg-menu with one more ".encode('utf-8')" thrown in.
Interesting, with your revised code it now fails here. I see I'm still using the old pyxdg here. It seems the new pyxdg getExec() returns unicode instead of str. Isn't that a bug? I'm not sure it can assume in what encoding are the file names stored.
the revised version fixes it for me. Although it still gives a warning if run from console, the menu displays correctly on the desktop. by the way, the sub-menu ids are still in english even if the lang is fr_Fr, but it's another bug. [haliyo@pad ~]$ /usr/libexec/openbox-xdg-menu applications > app.menu /usr/lib/python2.7/site-packages/xdg/Menu.py:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal """ [haliyo@pad ~]$ thx!