Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gef parsing failes due to tab delimiter #367

Open
tlukkezen opened this issue Nov 20, 2023 · 0 comments
Open

gef parsing failes due to tab delimiter #367

tlukkezen opened this issue Nov 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tlukkezen
Copy link
Collaborator

The Gef parser doesn't parse the cpt data table when the columns are separated by tabs. This can be confusing since multiple spaces (which are visually indistinguishable from tabs) are accepted as a separator by default. The GEF-format is a human-readable format and therefore we should accept tabs as a columnseparator by default.

Another reason for change is that it is not possible to enter the "tab" or "\t" as a value of #COLUMNSEPARATOR, so TAB-separated data cannot be parsed at all ATM.

How to reproduce

In the zip file enclosed are two files:

  • "cpt-tabs.GEF": Gives an error when parsed with pygef.read_cpt();
  • "cpt-spaces.GEF": Same file as the other, except the tabs are replaced with multiple spaces. This file CAN be parsed with pygef.read_cpt().

cpt-gef.zip

@tlukkezen tlukkezen added the bug Something isn't working label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant