Comment 1 for bug 590589

Revision history for this message
Parth Malwankar (parthm) wrote : Re: UnicodeDecode error with -F -i on emacs repo

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]%