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

Merge upstream #10

Merged
merged 108 commits into from
Jan 10, 2025
Merged

Merge upstream #10

merged 108 commits into from
Jan 10, 2025

Conversation

bovine
Copy link
Member

@bovine bovine commented Jan 10, 2025

Merges changes made in upstream repo back into our fork.

BCK-10142

sebres and others added 30 commits January 22, 2019 21:16
…g of tcl-core clock scans for JulianDay per default (5373484 = "9999-12-31 23:59:59")
… wide to string using `_witoaw(buf, -1, '0', 1)` caused mistakenly 10-chars padding).
… callback, as well as don't do the back-conversion from int to string (output inside fmtproc) - switch to CFMTT_PROC token type.
…mall times, B.C.E. between 4714 and 4713), added test-cases covering that.
…core compatibility (7x 0-padding, affected in B.C.E. only):

`clock format -210866803200 -format %J -gmt 1` results into `0000000`.
…, corresponds julian date of sqlite-database.

In opposite to calendar julian day `%J`, it starts the day at noon (and can parse float, so contains a time fraction).
**TODO** implement `clock format ... -format %Ej` and test-cases for format of this token.
**TODO** implement `%EJ` token for calendar JD with time fraction.
… fraction (in opposite to astronomical JD `%Ej` it starts at midnight like `%J` token).
Astronomical and calendar JDN/JD with time fraction
…to use same flags as by formatted scan instead of members like yyHave...);

(additionally allocates info->messages object on demand, if free scan fails)
Simplifying info structure, yacc rules and flags
The reason for that was the wrong length calculation by scanning through my string index tree, so the ambiguity check `j->(jan,ju->(jun,jul))` failed for 2nd element Ju(ne) with length 2.
Simple fix and test-cases covering that, but it looks like this has a good potential for speedup (todo: move length calculation from search to build)
…ocale/msgcat, etc) could overwrite interp state (errorInfo/errorCode)
…e of interp state by select and setup timezone (as well as in other "catched" blocks on lazy loading or initialization);

windows: load registry package on demand only (if possible, using same safe "catch" command).
…allel), different tcl-versions (bionic/disco)
…culation on negative month offset over threshold of a year
sebres and others added 28 commits March 24, 2024 18:04
…lock-6.10e/clock-6.10f): rewritten with common str2int now
…ens are optional, repaired greedy search (minLen), which finds a space besides of start of next token now; it is also more consistent than old engine now (covered by clock-44.4)
closes ticket [a858d95f4bfddafb]: adjust word-token pointer after possible realloc
…n) must cause day increment;

clock.test: more regression tests
…malized input value after scan, Sun is always 7 now);

more tests for valid days of weeks covering also format scan with different weekday formats (%a, %u, %w)
…ept `now` as clock value (value `-now` retained to compat reasons to earlier versions and tclclockmod, undocumented at the moment)

back-porting from https://core.tcl-lang.org/tcl/ci/f602e32fc3
…37beffbace823]):

  - usage of time zones `Etc/GMT±n` is allowed now (were impossible previously due to incorrect prevention of path escape for the tzdata directory);
  - test coverage (test clock-59.2)
…::ReportToMaster/ReportFromSlave got renamed to ::tcltest::ReportToParent/ReportFromChild in 8.6.11
…offset-TZ like +0200 correctly, and it'd be released with 8.6.16+)
@bovine bovine merged commit 02062bb into master Jan 10, 2025
8 checks passed
@bovine bovine deleted the merge-upstream branch January 10, 2025 20:24
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.

None yet

2 participants