| Summary: | net_monitor needs unicode | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Alex Loginov <loginov_alex> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | geiger.david68210, mageia, stormi-mageia, sysadmin-bugs |
| Version: | 4 | Keywords: | PATCH, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | has_procedure advisory MGA4-64-OK MGA4-32-OK | ||
| Source RPM: | net_monitor | CVE: | |
| Status comment: | |||
|
Alex Loginov
2014-02-26 14:07:57 CET
Assignee:
bugsquad =>
thierry.vignaud It is problem for python-2.7.6-1 from updates, no problem for python-2.7.5-11 from core.
Samuel Verschelde
2014-02-27 11:46:30 CET
CC:
(none) =>
stormi Patch for /bin/net_monitor: self.ifaces[iface][widget].set_text(str(value)) --- > self.ifaces[iface][widget].set_text(unicode(value)) Summary:
net_monitor does not work with Russian =>
net_monitor needs unicode for python-2.7.6 No, it's not python problem, net_monitor-0.15 works with python-2.7.6-1. This issue is present in net_monitor-0.16. Summary:
net_monitor needs unicode for python-2.7.6 =>
net_monitor needs unicode
Samuel Verschelde
2014-02-27 14:11:48 CET
Keywords:
(none) =>
PATCH Fixed in git Status:
NEW =>
RESOLVED Thierry, please provide an update for mga4. This bug https://bugs.mageia.org/show_bug.cgi?id=12047 is not OK, but there is net_monitor-0.16 in updates. Status:
RESOLVED =>
REOPENED I have uploaded a updated package for Mageia 4. Suggested advisory: ======================== Updated net_monitor package fix: - use of str() instead of unicode(). without fix net_monitor started, but did not work, was broken ======================== Updated packages in core/updates_testing: ======================== net_monitor-0.17-1.mga4.i586.rpm net_monitor-0.17-1.mga4.x86_64.rpm Source RPMs: net_monitor-0.17-1.mga4.src.rpm Version:
Cauldron =>
4 Tested mga4_64,
Testing complete for net_monitor-0.17-1.mga4, Ok for me.
I can also reproduce this bug on French system and I confirm that this bug is fixed with this update.
Before:
$ net_monitor
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py", line 633, in <lambda>
return (lambda data: callback(*data), user_data)
File "/usr/bin/net_monitor", line 498, in update
self.ifaces[iface][widget].set_text(str(value))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 20: ordinal not in range(128)
$
net_monitor shows nothing
--------------------------------------------------------------------------------
After:
$ net_monitor
$
net_monitor now shows something and works.CC:
(none) =>
geiger.david68210 Tested mga4_32,
Testing complete for net_monitor-0.17-1.mga4, Ok for me.
I can also reproduce this bug on French system and I confirm that this bug is fixed with this update too.
Before:
$ net_monitor
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py", line 633, in <lambda>
return (lambda data: callback(*data), user_data)
File "/usr/bin/net_monitor", line 498, in update
self.ifaces[iface][widget].set_text(str(value))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 20: ordinal not in range(128)
$
net_monitor shows nothing
--------------------------------------------------------------------------------
After:
$ net_monitor
$
net_monitor now shows something and works.Whiteboard:
MGA4TOO MGA4-64-OK =>
MGA4TOO MGA4-64-OK MGA4-32-OK Validating, thanks David and well done Alex. Advisories should be in a more natural/conversational type of language than the changelog so I uploaded it as below.. ---- net_monitor has been fixed to use str() instead of unicode(). Previously net_monitor would only work using English locale. The update corrects this. ---- Could sysadmin please push to 4 updates Thanks Keywords:
(none) =>
validated_update http://advisories.mageia.org/MGAA-2014-0097.html Status:
REOPENED =>
RESOLVED |
Description of problem: net_monitor does not work with Russian [user@localhost ~]$ net_monitor Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py", line 633, in <lambda> return (lambda data: callback(*data), user_data) File "/usr/bin/net_monitor", line 498, in update self.ifaces[iface][widget].set_text(str(value)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128) If to delete /usr/share/locale/ru/LC_MESSAGES/net_monitor.mo, then net_monitor works. Version-Release number of selected component (if applicable): net_monitor-0.16-1.mga4 How reproducible: always Steps to Reproduce: 1. run net_monitor in Russian 2. net_monitor shows nothing 3. delete /usr/share/locale/ru/LC_MESSAGES/net_monitor.mo 4. net_monitor works in English Reproducible: Steps to Reproduce: