[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#612334: vusb-analyzer: Doesn't work when locale is set to pl_PL.UTF-8



Package: vusb-analyzer
Version: 1.1-2
Severity: important

vusb-analyzer doesn't work, when locale is set to pl_PL.UTF-8. It works after setting it to C. I used sample file from vusb-analyzer homepage:

scibi@karaluszek:~$ vusb-analyzer /tmp/windows-storage-mount.log 
Warning: psyco not found, install it for a nice speed boost.
Loaded decoder module 'Cypress'
Loaded decoder module 'Storage'
Loaded decoder module 'Bluetooth'
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/vusb-analyzer/VUsbTools/Log.py", line 696, in run
    self.parser.parse(line)
  File "/usr/lib/vusb-analyzer/VUsbTools/Log.py", line 183, in parse
    UsbIOParser.parse(self, l[1][:-1], self.parseRelativeTime(line),
  File "/usr/lib/vusb-analyzer/VUsbTools/Log.py", line 190, in parseRelativeTime
    t = self.parseTime(line)
  File "/usr/lib/vusb-analyzer/VUsbTools/Log.py", line 207, in parseTime
    parsed = time.strptime(stamp, "%b %d %H:%M:%S")
  File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'Jan 11 23:40:52' does not match format '%b %d %H:%M:%S'

scibi@karaluszek:~$ export LC_ALL=C
scibi@karaluszek:~$ vusb-analyzer /tmp/windows-storage-mount.log 
Warning: psyco not found, install it for a nice speed boost.
Loaded decoder module 'Cypress'
Loaded decoder module 'Storage'
Loaded decoder module 'Bluetooth'
Installing decoder VUsbTools.Decoders.Storage.CommandDecoder
Installing decoder VUsbTools.Decoders.Storage.StatusDecoder
Installing decoder VUsbTools.Decoders.Storage.CommandDecoder
Installing decoder VUsbTools.Decoders.Storage.StatusDecoder
scibi@karaluszek:~$ 


-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (990, 'testing'), (990, 'stable'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vusb-analyzer depends on:
ii  python                  2.6.6-3+squeeze5 interactive high-level object-orie
ii  python-gtk2             2.17.0-4         Python bindings for the GTK+ widge
pn  python-psyco            <none>           (no description available)

Versions of packages vusb-analyzer recommends:
ii  libgnomecanvas2-0             2.30.1-1   A powerful object-oriented display
ii  python-gnome2                 2.28.1-1   Python bindings for the GNOME desk

vusb-analyzer suggests no packages.

-- no debconf information


Reply to: