pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

Search KeyError #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Search with chinese character cause this issue.

What steps will reproduce the problem?
1. gcalcli search "中文"

What is the expected output? What do you see instead?
  File "./gcalcli", line 1115, in <module>
    DoooooItHippieMonster()
  File "./gcalcli", line 1037, in DoooooItHippieMonster
    gcal.TextQuery(uniArg)
  File "./gcalcli", line 750, in TextQuery
    eventList = self._SearchForCalEvents(None, None, self.now, searchText)
  File "./gcalcli", line 711, in _SearchForCalEvents
    feed = self.gcal.CalendarQuery(query)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line
116, in CalendarQuery
    result = self.Query(query.ToUri())
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1139, in ToUri
    return atom.service.BuildUri(q_feed, self)
  File "/usr/lib/python2.5/site-packages/atom/service.py", line 446, in
BuildUri
    parameter_list = DictionaryToParamList(url_params, escape_params)
  File "/usr/lib/python2.5/site-packages/atom/service.py", line 414, in
DictionaryToParamList
    for param, value in (url_parameters or {}).items()]
  File "/usr/lib/python2.5/urllib.py", line 1213, in quote_plus
    return quote(s, safe)
  File "/usr/lib/python2.5/urllib.py", line 1205, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\u836f'

What version of the product are you using? On what operating system?
gcalcli-1.4, python 2.5.1, Ubuntu 7.10

Please provide any additional information below.

Original issue reported on code.google.com by liuzhong...@gmail.com on 28 Mar 2008 at 9:01

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 31 Jul 2011 at 5:20