Skip to content

Don't treat ASCII information separators as binary data - #4221

Open
deepsidhu1313 wants to merge 1 commit into
sqlitebrowser:masterfrom
deepsidhu1313:fix/ascii-separators-are-text
Open

deepsidhu1313 wants to merge 1 commit into
sqlitebrowser:masterfrom
deepsidhu1313:fix/ascii-separators-are-text

Conversation

@deepsidhu1313

Copy link
Copy Markdown
Contributor

isTextOnly() treats every control character which Qt does not consider
white space as a sign of binary data, so text containing the ASCII
information separators CHAR(28) to CHAR(31) was displayed as a BLOB. These
characters are regularly used as field and record delimiters in text, so
exempt U+001C to U+001F from the check.

The new test rows fail without this change.

Fixes #4193

isTextOnly() treats every control character which Qt does not consider
white space as a sign of binary data, so text containing the ASCII
information separators CHAR(28) to CHAR(31) was displayed as a BLOB. These
characters are regularly used as field and record delimiters in text, so
exempt U+001C to U+001F from the check.

The new test rows fail without this change.

Fixes sqlitebrowser#4193

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot view string containing ASCII Unit Separator CHAR(31) as text

2 participants