Skip to content

Binary cell dump not visible - with no scrollbars (and it's not even a real blob) #1461

@tlhackque

Description

@tlhackque

Details for the issue

What did you do?

Selected a database cell classified as a "blob"

What did you expect to see?

binary and ascii dump Everything is grayed-out, perhaps because the DB is open Read-Only.

What did you see instead?

only leftmost 2 chars of ascii dump
No horizontal scrollbars.

image

It is also mildly annoy that the single G1 character ('E4'), which is a valid Latin-1 graphic character suffices to make this text look like a blob.

E4 is "small a dieresis or umlaut"

The binary test should require C0 or C1 control characters; G1 graphics are not an indication of binary data.

For ISO standard (non-MS) text:

The C0 range is 0x00 - 0x1F (Text can be expected to have some of these:
09 - ht, 0a - lf, 0b - vt, 0c - ff, 0d - cr, and in some cases, 1b -esc and 1a (^z)

The C1 range is 0x80 - 0x9F none of which are common in ANSI text. (Windows, however does many of these for graphics.)

The G0 range is 0x20 - 0x7e (7f is DEL).
The G1 range is 0xA0 - 0xFF.

I would say that a field is "binary" if it has any bytes in the C0 set (except as noted) or any of the C1 set.

Some might disagree because of the Microsoft usage.

A very common (and simple) test for "binary" is the presence of a 0 (NUL) byte. It's not foolproof - a slightly enhanced version is if 0 bytes constitute more than a small (say, 10) percentage of the data - in text structures, 0 tends to be a terminator....

The latter test is probably the best choice here... it's simple, effective, and avoids the Microsoft issue.

(I might mention byte order marks and other Unicode indicators, but this note is already too long.)

Useful extra information

The info below often helps, please fill it out if you're able to. :)

What operating system are you using?

  • [xc ] Windows: ( _version:_10 pro ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

What is your DB4S version?

  • 3.10.1
  • 3.10.0
  • 3.9.1
  • [x ] Other: _3.10.99 5-Jul

Did you also

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions