UnicodeDecode error with -F -i

Bug #590589 reported by Parth Malwankar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-grep
Fix Released
High
Martin Packman

Bug Description

This is using bzr-grep 0.3.0-final

[emacs-bzr]% time bzr grep ffo -F -i > /dev/null
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 12: ordinal not in range(128)

Traceback (most recent call last):
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1109, in run_bzr
    ret = run(*run_argv)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1124, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/parthm/.bazaar/plugins/grep/__init__.py", line 244, in run
    grep.workingtree_grep(GrepOptions)
  File "/home/parthm/.bazaar/plugins/grep/grep.py", line 221, in workingtree_grep
    dir_grep(tree, path, relpath, opts, revno, path_prefix)
  File "/home/parthm/.bazaar/plugins/grep/grep.py", line 302, in dir_grep
    opts, revno, path_prefix)
  File "/home/parthm/.bazaar/plugins/grep/grep.py", line 589, in _file_grep
    if pattern in line.lower():
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 12: ordinal not in range(128)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-06-07T02:27.crash
if a bug-reporting window does not automatically appear.
bzr grep ffo -F -i > /dev/null 0.43s user 0.13s system 26% cpu 2.150 total
[emacs-bzr]%

Revision history for this message
Parth Malwankar (parthm) wrote :

Also seen on mysql-server repo:
[mysqls60]% time bzr grep ffo -F -i > /dev/null
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 71: ordinal not in range(128)

Traceback (most recent call last):
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1109, in run_bzr
    ret = run(*run_argv)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/storage/parth/src/bzr.dev/trunk/bzrlib/commands.py", line 1124, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/parthm/.bazaar/plugins/grep/__init__.py", line 244, in run
    grep.workingtree_grep(GrepOptions)
  File "/home/parthm/.bazaar/plugins/grep/grep.py", line 221, in workingtree_grep
    dir_grep(tree, path, relpath, opts, revno, path_prefix)
  File "/home/parthm/.bazaar/plugins/grep/grep.py", line 302, in dir_grep
    opts, revno, path_prefix)
  File "/home/parthm/.bazaar/plugins/grep/grep.py", line 589, in _file_grep
    if pattern in line.lower():
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 71: ordinal not in range(128)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-06-07T02:32.crash
if a bug-reporting window does not automatically appear.
bzr grep ffo -F -i > /dev/null 0.60s user 0.11s system 35% cpu 1.975 total
[mysqls60]%

Changed in bzr-grep:
importance: Undecided → High
status: New → Confirmed
summary: - UnicodeDecode error with -F -i on emacs repo
+ UnicodeDecode error with -F -i
Revision history for this message
Martin Packman (gz) wrote :

This bug should be incidentally fixed in lp:~gz/bzr-grep/preformat_output now.

Revision history for this message
Parth Malwankar (parthm) wrote :
Changed in bzr-grep:
assignee: nobody → Martin [gz] (gz)
status: Confirmed → 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.