2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-21 03:02:18 +00:00
Commit Graph

310 Commits

Author SHA1 Message Date
Alexander Grund
eba43f79db Add script for automatic push to standalone branch 2020-05-13 13:21:05 +02:00
Alexander Grund
8836d6c5a6 Merge pull request #95 from Flamefire/cin_fixes
Make cin behave more like std::cin
2020-05-07 09:51:53 +02:00
Alexander Grund
6de06c25c6 Avoid constant expression warning and rename variables 2020-05-06 17:56:41 +02:00
Alexander Grund
781cf4e912 Simplify putback buffer handling of cin a bit
Remove temporary buffer
2020-05-04 20:40:36 +02:00
Alexander Grund
5813214a09 Treat CTRL+Z at the beginning of a line as EOF 2020-05-04 20:40:36 +02:00
Alexander Grund
ec63209351 Ignore CR in cin
Fixes #94
2020-05-04 20:40:36 +02:00
Alexander Grund
2e543e987d Merge pull request #93 from Flamefire/args_docu
Make the behavior of the class args clearer
2020-05-04 20:33:57 +02:00
Alexander Grund
c246a24d27 Support cin.sync
Call FlushConsoleInputBuffer and test that (manually)
2020-05-04 20:32:29 +02:00
Alexander Grund
205568fce3 Further improve the args docu
Initial wording provided by @tats-u, thanks!
2020-04-29 08:30:12 +02:00
Tatsunori Uchino
d08a47aab9 Make the behavior of the class args clearer 2020-04-27 23:38:34 +09:00
Alexander Grund
360e55f782 Bump version to 10.0.1 2020-04-22 08:42:24 +02:00
Alexander Grund
fdfde193bf Merge pull request #89 from Flamefire/docu
Update documentation
2020-04-22 08:38:58 +02:00
Alexander Grund
f93c514d13 Update doc Jamefile 2020-04-21 18:52:53 +02:00
Alexander Grund
dfb5c02a1f Update documentation 2020-04-21 18:43:46 +02:00
Alexander Grund
24b9c34afe Merge pull request #88 from Flamefire/ctor_dtor
Build with -Wctor-dtor-privacy
2020-04-19 15:09:22 +02:00
Alexander Grund
af5a3c6c0c Fix -Wctor-dtor-privacy warning 2020-04-18 20:37:58 +02:00
Alexander Grund
c1b6a86133 Merge pull request #87 from Flamefire/improve_ci
Update CI from boost-ci
2020-04-07 15:12:53 +02:00
Alexander Grund
9e4b3afe2b Update CI from boost-ci 2020-04-07 13:29:58 +02:00
Alexander Grund
06c103125b Merge pull request #84 from Flamefire/docu_improvement
Add note about UCS-2 and error reporting to Q&A
2020-04-07 09:48:51 +02:00
Alexander Grund
c1254fdf74 Merge pull request #86 from Flamefire/test_fixes
Test fixes
2020-04-03 19:19:18 +02:00
Alexander Grund
6afb3f15ab Deduplicate tests and improve coverage
Every test had the same pattern of a main catching exceptions and
returning 0 or 1 based on that. Factor that into test.hpp.
As most code in test.hpp is only executed on failure and those should
not occur this file is excluded from coverage.

Finally test.hpp is included last and the header to test first
consistently to check for self-sufficient includes.
2020-04-03 16:28:28 +02:00
Alexander Grund
2f323ad9b2 [CI] Use ppa directly on travis
Workaround "Disallowing sources: ubuntu-toolchain-r-test" bug
2020-04-03 16:28:28 +02:00
Alexander Grund
b870c3276f [CI] Update AzP CI script 2020-04-03 16:28:28 +02:00
Alexander Grund
c51e4bd1a8 Disable test_system on OSX for shared libs
THe child process can't start as RPATH/DYLIB_PATH is not set up
correctly for child processes
2020-04-03 16:28:26 +02:00
Alexander Grund
6bfbde5c24 Improve test_system
Split parent and child code into functions for better output
Introduce TEST_EQUAL for better output
Compare each entry in env-pointer and argv

Don't check env-pointer values against getenv() as they might differ:
When launching the program from e.g. bash with `temp=bar`then there is
TEMP and temp in the list (env-pointer) but getenv/GetEnvironmentVariable
is case insensitive picking up the first matching value.
2020-04-03 16:21:15 +02:00
Alexander Grund
77964a4be6 Add note about UCS-2 and error reporting to Q&A 2020-03-31 09:54:56 +02:00
Alexander Grund
e2945b3983 Add note about dropping C++03 2020-03-30 18:12:16 +02:00
Alexander Grund
aef150a638 Use Boost_ prefix for configurable options 2020-03-29 21:26:47 +02:00
Alexander Grund
cad77fdba9 Merge pull request #83 from Flamefire/ci
Simplify CI
2020-03-29 20:22:41 +02:00
Alexander Grund
c6241c917b Workaround for empty environment variables
On AzP the test fails due to BUILD_REQUESTEDFOREMAIL= being in the env
pointer but not in the environment.
On Windows a "set FOO=" UNsets FOO so empty values are likely not part
of the environment, hence don't check via getenv for those.

Add a test including an empty env variable.
2020-03-28 18:44:37 +01:00
Alexander Grund
58773bbcf3 Add debug output to test_system 2020-03-28 17:51:44 +01:00
Alexander Grund
db2640a183 Use updated boost-ci with less repetition 2020-03-28 16:23:35 +01:00
Alexander Grund
24aa73f60f Hide appveyor and AzP CI scripts 2020-03-28 14:50:24 +01:00
Alexander Grund
3498100cce Merge pull request #81 from Flamefire/cmake_superproject
Disable Boost CMake build on master in GHA
2020-03-25 19:30:25 +01:00
Alexander Grund
b87193c052 Fix OSX build on AzP 2020-03-25 19:12:48 +01:00
Alexander Grund
80241c4705 Remove outdated vs2015-win2012r2 image from AzP 2020-03-25 16:21:12 +01:00
Alexander Grund
1c16c68d06 Limit AzP jobs 2020-03-25 15:52:02 +01:00
Alexander Grund
0854d2fb35 Disable Boost CMake build on master in GHA 2020-03-25 15:47:57 +01:00
Alexander Grund
e5b6e08ecd Add Azure Pipelines 2020-03-25 15:17:05 +01:00
Alexander Grund
f89f9cd229 Merge pull request #79 from Flamefire/superproject_build
Move superproject build into own job and disable on master
2020-03-25 11:12:17 +01:00
Alexander Grund
f93e7398b1 Move superproject build into own job and disable on master 2020-03-25 08:15:57 +01:00
Alexander Grund
7cf83cf3fc Merge pull request #77 from Flamefire/final_fixes
Preparation for release
2020-03-19 13:42:54 +01:00
Alexander Grund
1146d50786 Try harder to put string on stack in stackstring 2020-03-19 11:32:22 +01:00
Alexander Grund
a314765320 Fix potential buffer overflow in iostreams
Unify conversion if input and output stream replacing invalid chars
Use max_width to determine buffer size
Add assertions
2020-03-18 23:01:18 +01:00
Alexander Grund
b345a84a75 Remove some explicit template params 2020-03-18 21:13:39 +01:00
Alexander Grund
7a66fa9e68 Add release workflow 2020-03-15 22:43:39 +01:00
Alexander Grund
b1e58e6d0c Improve create_standalone.sh
Add LICENSE
Fix boost::filesystem integration
2020-03-15 22:43:39 +01:00
Alexander Grund
6ba99135d0 Add alternative via UTF-8 code page to docu 2020-03-15 22:43:39 +01:00
Alexander Grund
12b9baabd6 Reorganize badges in Readme 2020-03-15 22:43:39 +01:00
Alexander Grund
e8e7f06589 Merge pull request #76 from Flamefire/standalone
Allow building as standalone (No Boost references at all)
2020-03-15 20:38:55 +01:00