Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#5430 closed defect (fixed)

Traceback when trying to search in Advanced->History Manager with non-english locale

Reported by: http://plisk.livejournal.com/ Owned by:
Priority: normal Milestone: 0.13
Component: history Version: hg
Severity: normal Keywords:
Cc: Blocked By:
Blocking: OS: All

Description

Bug description

Traceback (most recent call last):
  File "history_manager.py", line 621, in on_search_db_button_clicked
    self._fill_search_results_listview(text)
  File "history_manager.py", line 414, in _fill_search_results_listview
    ''', (like_sql, like_sql))
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

Steps to reproduce

Open menu Actions->Advanced->History Manager

Enter a string in non-english locale(i'm using russian here) to search and press enter.

Software versions

OS version: Gentoo the latest
GTK version: 2.18.3
PyGTK version: 2.16.0

Change History (2)

comment:1 Changed 7 years ago by Yann Leboulanger <asterix@…>

  • Milestone set to 0.14
  • Resolution set to fixed
  • Status changed from new to closed

(In [6b9443c4c898]) properly decode string in history manager. Fixes #5430

comment:2 Changed 7 years ago by Yann Leboulanger <asterix@…>

  • Milestone changed from 0.14 to 0.13

(In [48080bc9e93d]) properly decode string in history manager. Fixes #5430

Note: See TracTickets for help on using tickets.