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

Year limit #31

Open
kengruven opened this issue Jun 17, 2021 · 0 comments
Open

Year limit #31

kengruven opened this issue Jun 17, 2021 · 0 comments

Comments

@kengruven
Copy link

After a certain point, enctool kind of gives up trying to handle years, and just latches on to a particular value:

$ echo 'c1 1000000000000000000000000000000-1-1'|./enctool convert -df cbe|hexdump -C
00000000  03 00 99 21 3e 9f c0 e1  0e                       |...!>....|
00000009
$ echo 'c1 100000000000000000000000000000000-1-1'|./enctool convert -df cbe|hexdump -C
00000000  03 00 99 21 3e 9f c0 e1  0e                       |...!>....|
00000009
$ echo 'c1 10000000000000000000000000000000000-1-1'|./enctool convert -df cbe|hexdump -C
00000000  03 00 99 21 3e 9f c0 e1  0e                       |...!>....|
00000009

The value doesn't seem to have any useful meaning, or at least, not that enctool can recognize:

$ echo 'c1 1000000000000000000000000000000-1-1'|./enctool convert -df cbe|./enctool convert -df cte
c0
-1981284352-01-0

In particular, though, enctool doesn't seem to have any limit on year size -- not even the normal integer limit.

(Implementation note: I have a separate max digit limit for years, and my default is 4. I used to write archaeology software that dealt with samples thousands of years old, so I've run into every year-related bug in the book. There simply aren't any use cases for that level of precision, that far out. Nobody has ever needed to record that something happened on July 17 in the Pleistocene.)

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

No branches or pull requests

1 participant