Skip to content

Commit

Permalink
Fixes problem with DBF file where rest of field name is not filled wi…
Browse files Browse the repository at this point in the history
…th \0
  • Loading branch information
best4innio committed Oct 11, 2023
1 parent 573ce48 commit c477b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DBFTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ end
"Read a field descriptor from the stream, and create a FieldDescriptor struct"
function read_dbf_field(io::IO)
field_name_raw = String(read!(io, Vector{UInt8}(undef, 11)))
field_name = Symbol(strip(replace(field_name_raw, '\0' => ' ')))
field_name = Symbol(split(field_name_raw, '\0')[1])
field_type = read(io, Char)
skip(io, 4) # skip
field_len = read(io, UInt8)
Expand Down

0 comments on commit c477b43

Please sign in to comment.