code-google-com / bpbible

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

Error in quick selector when typing verses in hindi #180

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Switch to hindi
2. Press g
3. type rev 51:3

What is the expected output? What do you see instead?
Expected is no such verse

Result is 
Traceback (most recent call last):
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/gui/quickselector.py", line 64, in on_enter
    self.TopLevelParent.EndModal(wx.OK)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/gui/quickselector.py", line 191, in EndModal
    self.callback(self, success)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/bookframe.py", line 260, in go_quickly_finished
    ref = self.get_verified(qs.text)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/bookframe.py", line 49, in get_verified_one_verse
    raiseError=True, userInput=True, userOutput=False)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/swlib/pysw.py", line 1700, in GetVerseStr
    raiseError=raiseError, userInput=userInput)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/swlib/pysw.py", line 837, in __init__
    headings=headings)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/swlib/pysw.py", line 928, in RefreshVKs
    check_vk_bounds(v)
  File "/Users/benm/builds/sword/trunk/bindings/swig/package/python/bpbible/swlib/pysw.py", line 700, in check_vk_bounds
    chapters=chapters, book=vk.getBookName(), given=chapter
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal 
not in range(128)

Original issue reported on code.google.com by benpmor...@gmail.com on 1 Nov 2010 at 5:11