* [feature]strformat: add 2 'fmt' macros that use specified chars instead of '{}'
* strformat: revert documentation comments of `&` and 'fmt'
* strformat: removed single open/close char variant of fmt
* On windows, os.relativePath returns path as is when roots are different
* Implement os.sameRoot without windows API
* Fix compile error when compiling lib/nimhcr.nim
* Fix compile error when compiling lib/nimhcr.nim on Windows
* readLine of StringStream now works at compile time
* Work for js backend only at compile time
* readAll now works at CT
* readAll works in js ct now
* Add test
* Locks modules should give a compile error when threads are not enabled.
* fix the compile flags to make the tests pass, or ignore files where necessary.
* Fixed when statement to account for doc builds.
* fixes#12015 by also checking kind of `typeNode`
If a tuple field is aliased it'll appear the same as a ref type in a
call to `getType` if only for the kind of the resulting `NimNode` is
checked (that is a `nnkBracketExpr`)
* fix test case due to #12017 and add more realistic test case
Adds an additional test case, which includes generics and is closer to
the real failure I encountered
* remove previous fix and fix differently after all
The previous fix was incomplete, because it failed for generics.
Note that the `of "tuple"` is not actually needed, the
`nnkBracketExpr` branch in the `else` branch would catch it too, but I
decided to introduce it for clarity. However, the latter is actually
needed, because it seems for aliases of `seq` we end up in it.
* update comment about global `%` proc in json test
* Add patch by @xenogenesi
* Async test for HTTP/1.1 without Content-Length
* Apply suggestions from code review
Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com>
* Allow for locale-based parsing/formatting of dates
* Updates based on review feedback of PR 11170
DateTimeLocale arrays are now indexed by Month and WeekDay enums.
More sane date used for testing.
Documentation newline.
Case change of DefaultLocale (and make it public)
* Add changelog entry for DateTimeLocale addition to times module
* Use pattern symbols for DateTimeLocale attribute names
* s/exitStatus(...)/exitStatusLikeShell(...)/
* fix#10273 execShellCmd now returns nonzero when child exits with signal
* test case for #10249 and explanation for the bug
* fix test failure
* add tests/nim.cfg
Darwin has long deprecated the wait union, but their macros still assume
it unless you define _POSIX_C_SOURCE. This trips up C++ compilers.
This commit duplicates the behavior of WEXITSTATUS when _POSIX_C_SOURCE
is defined.