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

123 Commits

Author SHA1 Message Date
Flamefire
87aeeff2c9 Change to doc dir before calling doxygen 2019-12-28 16:02:31 +01:00
Flamefire
3bd6eed183 Enforce uniform formatting via clang-format 2019-12-28 16:02:31 +01:00
Flamefire
2142deca46 Update Doxyfile 2019-12-28 16:02:31 +01:00
Alexander Grund
c3dd00723f Merge pull request #27 from Flamefire/cmake
Create proper CMake files
2019-12-27 18:05:58 +01:00
Flamefire
f0274b7179 Use hidden visibility 2019-12-27 14:26:31 +01:00
Flamefire
3bf16a5e59 Don't use DEFINE_SYMBOL
It is not set in the INTERFACE part
2019-12-27 14:26:31 +01:00
Flamefire
5ebf2cb2be Disable installation for superbuild
static_assert and smart_ptr are missing installation targets
2019-12-27 14:26:31 +01:00
Flamefire
27e04866be Install libc++-helpers for travis tests 2019-12-27 14:26:31 +01:00
Flamefire
b94e9b834e Add tests for Boost superproject build 2019-12-27 14:26:31 +01:00
Flamefire
d357f7108f Add CI for CMake project + consumer test 2019-12-27 14:26:31 +01:00
Flamefire
3d6c001fc4 Add proper CMake files 2019-12-27 14:26:31 +01:00
Flamefire
f95ef16706 Remove dependency on Boost.Locale
Copy utf.hpp from Boost.Locale
2019-12-27 14:26:31 +01:00
Flamefire
4110393815 Remove dependency on encoding_utf
Function utf_to_utf is no longer used
2019-12-25 15:32:08 +01:00
Flamefire
bf51a60bb9 Use boost/detail/workaround
Compatibility with Boost < 1.65
2019-12-20 20:34:47 +01:00
Alexander Grund
92f3e0c189 Merge pull request #51 from Flamefire/feature/travis_improvements
Reduce number of Linux jobs run on PRs
2019-12-19 09:22:58 +01:00
Alexander Grund
60b30f6323 Merge pull request #49 from Flamefire/pedantic_warnings
Enable pedantic warnings for tests and fix detected issues
2019-12-18 17:00:36 +01:00
Flamefire
b0cef1c680 Reduce number of Linux jobs run on PRs
The library is mostly for windows, so there isn't much to test on Linux
Reduce to oldest and most recent compilers
But still test all on pushes to eventually detect compiler version specific issues

Fixes #50
2019-12-18 14:59:36 +01:00
Flamefire
ddcbf8ab6d Simplify travis.yml 2019-12-18 14:59:33 +01:00
Flamefire
1d50c27dce Fix some warnings 2019-12-18 14:47:14 +01:00
Flamefire
91b3d90b49 Enable pedantic warnings & Werror for tests 2019-12-18 14:46:18 +01:00
Flamefire
bb743eedce Reduce dependency on Boost.Filesystem
Sort test cases in Jamfile and add missing one
2019-12-18 14:46:15 +01:00
Flamefire
e0ef69a71a Remove duplicate call to GetCommandLineW 2019-12-15 11:17:02 +01:00
Alexander Grund
38cc7bd64a Merge pull request #29 from Flamefire/getcmdlineException
Add exceptions if winApi calls fail
2019-12-14 20:52:15 +01:00
Alexander Grund
9d6c93e055 Merge pull request #24 from Flamefire/putEnvFix
Add test for putenv without equals sign
2019-12-14 19:09:09 +01:00
Flamefire
ea99c1d1ca Avoid memory leak in fix_args/fix_env
Throwing bad_alloc from vector::resize could leak memory
2019-12-14 17:51:58 +01:00
Flamefire
72565401ea Remove try-catch and document the thrown exception
The try-catch is not required because no exception can be thrown anymore.
Invalid UTF-16 (formerly indicated by an exception) is now replaced by the replacement character.
2019-12-14 17:51:58 +01:00
Flamefire
a5a4261161 Throw exception if WinAPI call fails
That should never happen so throw an exception just in case
2019-12-14 16:49:49 +01:00
Alexander Grund
43f3b274b1 Merge pull request #46 from Flamefire/cleanup
Minor cleanup
2019-12-14 16:45:30 +01:00
Flamefire
2988c60f61 Handle failure in putenv caused by GLIBC extension
The GNU C library implementation provides a nonstandard extension.
If string does not include an equal sign:

putenv("NAME");

then the named variable is removed from the caller's environment.
http://man7.org/linux/man-pages/man3/putenv.3.html
2019-12-14 15:47:53 +01:00
Flamefire
035a21bc9e Add test for putenv without equals sign
Reproducer for #14
2019-12-14 15:47:53 +01:00
Flamefire
c3e19a2d13 Honor BOOST_USE_WINDOWS_H instead of BOOST_NOWIDE_USE_WINDOWS_H 2019-12-14 15:47:02 +01:00
Flamefire
0f15213b4f Remove unused define BOOST_NOWIDE_STATIC_LINK 2019-12-14 15:47:01 +01:00
Flamefire
6d4ad15649 Add gitignore 2019-12-14 15:47:01 +01:00
Flamefire
f2e95fc899 Remove trailing whitespace 2019-12-14 15:47:01 +01:00
Flamefire
14d9b27140 Remove some unnecessary define checks 2019-12-14 15:47:00 +01:00
Flamefire
1fc5a49e27 Remove wrong comments 2019-12-14 15:47:00 +01:00
Flamefire
a067f5808b Remove Debug code 2019-12-14 15:47:00 +01:00
Flamefire
7549c80457 Include C++ headers instead of C variants 2019-12-14 13:35:37 +01:00
Flamefire
bfd05a5e76 Fix conversion warnings 2019-12-14 10:31:45 +01:00
Alexander Grund
d4b4d2d638 Merge pull request #47 from Flamefire/fix_tests
Fix tests failing on CI
2019-12-14 10:30:58 +01:00
Flamefire
872c8eb37f Fix iostream test
The standard guarantees only a putback of 1 char on stdin, our implementation has support for more
Also test that the values read on stdin are indeed UTF-8
2019-12-13 21:14:35 +01:00
Flamefire
f213fd90f4 Fix exception path of tests
Even in case of exceptions boost::report_errors has to be called
2019-12-13 19:24:44 +01:00
Peter Dimov
20ae1497f3 Remove review_notes.txt 2019-12-05 01:01:25 +02:00
Peter Dimov
20c3b2d937 Remove CMakeLists.txt 2019-12-05 01:01:11 +02:00
Peter Dimov
ddb2794705 Merge branch 'feature/temp-review-fixes' into feature/merge-review-fixes
Conflicts:
	include/boost/nowide/utf8_codecvt.hpp
	test/test_codecvt.cpp
	test/test_convert.cpp
	test/test_fs.cpp
2019-12-04 19:50:59 +02:00
Peter Dimov
98cda02480 Change line endings to LF 2019-12-04 19:37:20 +02:00
Peter Dimov
668a526c5a Change line endings to LF 2019-12-04 19:31:05 +02:00
Peter Dimov
36794503ce Add doc/html 2019-12-04 16:32:38 +02:00
Peter Dimov
878baf173f Change repository links to boostorg 2019-12-04 16:31:30 +02:00
Peter Dimov
6df39fc829 Switch back to using test.hpp in tests 2019-12-04 16:29:56 +02:00