[win32] setlocale broke win32com and wmi

Bug #255080 reported by yyoyo
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Critical
yyoyo

Bug Description

when locale.setlocale(locale.LC_ALL, "") call is done at the beginning of the application, the wmi request (made in wmd_resource) fails on encoding issues:

WARN MainThread pigment_frontend ago 05 20:12:13 exception calling decorator <function hardware_decorator at 0x03CB8370>:
failure <type 'exceptions.UnicodeDecodeError'> at C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\win32com\client\build.py:542: <lambda>():
'utf8' codec can't decode byte 0x83 in position 52: unexpected code byte (elisa\plugins\pigment\pigment_frontend.py:199

due to this, the USB management is broken:

Step to reproduce :
1. Launch Elisa
2. go in Music

Expected result:
3. The USB devices are displayed

Unexpected results:
3. The traceback is raised
4. The USB devices are not displayed

yyoyo (lionel.martin)
Changed in elisa:
assignee: nobody → lionel.martin
importance: Undecided → High
milestone: none → 0.5.4
status: New → In Progress
Changed in elisa:
importance: High → Critical
Changed in elisa:
status: In Progress → Fix Committed
yyoyo (lionel.martin)
Changed in elisa:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.