BurntSushi / BurntSushi/rust-csv
Deserializing bool fields fails if the field is not exactly "true" or "false".
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
#### What version of the `csv` crate are you using?
1.0.2
#### Briefly describe the question, bug or feature request.
When deserializing a TSV file, if a boolean column's values are not exactly `true` or `false`, the deserialization fails. Some editors, like Google Sheets use "TRUE" and "FALSE", or "True" and "False" instead, making files edited with them throw an error when deserializing.
#### Include a complete program demonstrating a problem.
Here is a working example of the problem. The `works.tsv` file works, but the `fails.tsv` throws an error in each row.
[csv-bug.tar.gz](https://github.com/BurntSushi/rust-csv/files/2438547/csv-bug.tar.gz)
#### What is the expected or desired behavior of the code above?
To parse correctly `TRUE`, `True`, `FALSE` and `False` as booleans.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.