Package: zim
Version: 0.42-3
Severity: normal

Hi.

Note that I have (apparently successfully) migrated my notes from <0.42 to the 
new Python zim.

I usually edit the pages in french.

When I tried to search for "amanda" in my notes (Search > Search), I got the 
following stack trace :

$ LANG=C zim --no-daemon
WARNING: Invalid config value for slow_fs: "0" - should be of type <type 'bool'>
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/zim/gui/searchdialog.py", line 47, in 
search
    self.results_treeview.set_query( self.query_entry.get_text() )
  File "/usr/lib/pymodules/python2.5/zim/gui/searchdialog.py", line 88, in 
set_query
    result = self.searcher.search(query)
  File "/usr/lib/pymodules/python2.5/zim/search.py", line 191, in search
    return self._filter_and(query, query.root, RootSelection(self.notebook))
  File "/usr/lib/pymodules/python2.5/zim/search.py", line 200, in _filter_and
    selection = selection.filter(key, word, regex)
  File "/usr/lib/pymodules/python2.5/zim/search.py", line 130, in filter
    for page in store.walk():
  File "/usr/lib/pymodules/python2.5/zim/stores/__init__.py", line 225, in walk
    for page in self.get_pagelist(path):
  File "/usr/lib/pymodules/python2.5/zim/stores/files.py", line 82, in 
get_pagelist
    yield self.get_page(path + name)
  File "/usr/lib/pymodules/python2.5/zim/stores/files.py", line 65, in get_page
    haschildren=dir.exists(), source=file, format=self.format)
  File "/usr/lib/pymodules/python2.5/zim/fs.py", line 326, in exists
    return os.path.isdir(self.path)
  File "/usr/lib/python2.5/posixpath.py", line 195, in isdir
    st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 
27: ordinal not in range(128)

I suspect that this is because pages were created with french locale before.

When I try without LANG=C (locale : LANG=fr_FR.UTF-8), it works without any 
problem.

Hope this helps.

Best regards,

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zim depends on:
ii  python                        2.5.4-5    An interactive high-level object-o
ii  python-gtk2                   2.16.0-1   Python bindings for the GTK+ widge
ii  python-simplejson             2.0.9-1    Simple, fast, extensible JSON enco
ii  python-support                1.0.6      automated rebuilding support for P
ii  python-xdg                    0.18-1     Python library to access freedeskt

zim recommends no packages.

Versions of packages zim suggests:
pn  bzr                           <none>     (no description available)
pn  graphviz                      <none>     (no description available)
pn  scrot                         <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to