Skip to content

A sqlite DB is detected as not a binary #43

@pombredanne

Description

@pombredanne

This file https://github.com/linq2db/linq2db/raw/5e26fa1693208b92b0791dff445ab7b42e79fb1b/Data/Northwind.sqlite is not detected correctly as binary

>>> is_binary('Northwind.sqlite')
DEBUG:binaryornot.helpers:nontext_ratio1: 0.9697265625
DEBUG:binaryornot.helpers:nontext_ratio2: 0.98828125
DEBUG:binaryornot.helpers:is_likely_binary: True
DEBUG:binaryornot.helpers:detected_encoding: {'confidence': 0.9377949365075317, 'language': 'Bulgarian', 'encoding': 'windows-1251'}
DEBUG:binaryornot.helpers:success: decodable_as_unicode: True
DEBUG:binaryornot.helpers:failure: decodable_as_unicode: True
False

IMHO it should be a binary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions