lannymac / pyshp

Automatically exported from code.google.com/p/pyshp
MIT License
0 stars 0 forks source link

Support for '-' on numeric fields #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get a dbf file that contains a numeric field with '-' values.
2. Pass the dbf file into the Reader

What is the expected output? What do you see instead?
I would say '-' should be interpreted as None.  Instead there is an exception

What version of the product are you using? On what operating system?
1.2.0 on osx.

Please provide any additional information below.
I believe the spec supports this:
http://www.clicketyclick.dk/databases/xbase/format/data_types.html
for numeric fields: "ASCII text up till 18 characters long (include sign and 
decimal point). Valid characters: "0" - "9" and "-". Number fields can be up to 
20 characters long in FoxPro and Clipper."

Original issue reported on code.google.com by c...@conduce.com on 27 May 2014 at 7:59