Skip to content

Commit

Permalink
Merge pull request #1 from ZanSara/ZanSara-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanSara authored Jan 3, 2019
2 parents 823e2b3 + c79429b commit 59a3812
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbfpy3/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class DbfLogicalFieldDef(DbfFieldDef):
def decodeValue(self, value):
"""Return True, False or -1 decoded from ``value``."""
# Note: value always is 1-char string
value = value.decode(locale.getpreferredencoding)
if value == "?":
return -1
if value in "NnFf ":
Expand Down

0 comments on commit 59a3812

Please sign in to comment.