mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-19 03:58:28 -05:00
Binary detection: end-of-line characters where not treated as text
Fixes 5e0c56a47f
See issue #1201
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ bool isTextOnly(QByteArray data, const QString& encoding, bool quickTest)
|
||||
QString text (data);
|
||||
bool isPrintable = true;
|
||||
for(QChar character : text) {
|
||||
if(!character.isPrint()) {
|
||||
if(character.isNonCharacter() || (character.category() == QChar::Other_Control && !character.isSpace())) {
|
||||
isPrintable = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user