Commit Graph

1238 Commits

Author SHA1 Message Date
Guenter Obiltschnig
e4f5c66dfd fixed GH #1260: URI encoding 2017-02-17 09:23:36 +01:00
Guenter Obiltschnig
3de2358bdf another attempt at strerror_r(), using C++ power 2017-02-14 14:49:15 +01:00
Guenter Obiltschnig
1435c9ad97 revert changes to Error.cpp; it's hopeless with strerror_r()... 2017-02-14 14:35:56 +01:00
Guenter Obiltschnig
f18b7210f4 use strerror_r on Darwin 2017-02-14 14:10:26 +01:00
root
3b49520d63 another fix for strerror() with musl 2017-02-14 12:59:09 +00:00
Guenter Obiltschnig
1a7a1810f6 fix warning regarding unused return value 2017-02-14 13:46:03 +01:00
Günter Obiltschnig
21110e4ffa fixed a warning 2017-02-11 19:35:54 +01:00
Guenter Obiltschnig
c2aca1d109 GH #1538: update double-conversion to v1.1.5 2017-02-11 12:49:14 +01:00
Guenter Obiltschnig
6c207b5157 fixed GH #1549: Latin2Encoding and 0xFF 2017-02-11 12:27:33 +01:00
Guenter Obiltschnig
7d91a4bc94 GH #1586: Upgrade bundled PCRE to 8.40 2017-02-11 12:04:36 +01:00
Guenter Obiltschnig
f8a0bbff1b fixed GH #1581: Cannot find 'pcre.h' when using POCO_UNBUNDLED, a non-system PCRE, and CMake 2017-02-11 12:03:37 +01:00
Günter Obiltschnig
43a0490a70 fixed GH #1523: Long path names under Windows 2017-02-02 20:56:30 +01:00
Guenter Obiltschnig
960649d0ba fix for GH #1501: Alpine 3.4 trouble with Foundation/src/Error.cpp 2017-01-31 17:47:40 +01:00
Guenter Obiltschnig
8ed7dfecc5 fixed GH #1573: Poco::File::createDirectories() should not throw Poco::FileExistsException 2017-01-29 12:46:13 +01:00
Guenter Obiltschnig
c117619e1e upgraded bundled zlib to 1.2.11 2017-01-25 10:14:40 +01:00
Guenter Obiltschnig
be4acf00c9 added missing file to project 2017-01-24 16:45:59 +01:00
Guenter Obiltschnig
f45ab8e322 only use <atomic> header if C++11 support is available 2017-01-13 15:41:50 +01:00
Guenter Obiltschnig
bbecde0829 fixed GH #1536: Building with OS X 10.12 SDK and 10.7 deployment target without libc++ fails; updated Darwin build configurations 2017-01-10 16:57:22 +01:00
Guenter Obiltschnig
04812f5728 updated version numbers 2017-01-10 15:03:41 +01:00
Guenter Obiltschnig
690ba1da2b remove debug output 2016-12-29 15:00:45 +01:00
Guenter Obiltschnig
b32b314368 GH #865: FileChannel compress fails leaving empty .gz files 2016-12-29 14:19:42 +01:00
Guenter Obiltschnig
c8aa27381b more fixes related to GH #1453 2016-12-06 21:47:39 +01:00
Guenter Obiltschnig
376e703343 fixed GH #1453: _clock_gettime Symbol not found on Mac 10.11 [do not use clock_gettime() on Apple platforms, even if _POSIX_TIMERS indicates it's available] 2016-12-06 18:21:37 +01:00
Guenter Obiltschnig
c9c21de32a fixed GH #1488: Poco::ObjectPool shrinks if returned object is not valid 2016-12-05 22:46:43 +01:00
Guenter Obiltschnig
19c0b38bf8 On Apple platforms, use std::atomic with MacOS 10.12 or iOS 10 SDK. 2016-12-05 22:19:45 +01:00
Guenter Obiltschnig
84e0905b6f additional changes for #1499: fix warnings and be consistent with base class order 2016-11-28 00:23:05 +01:00
vm2mv
57f77bc622 Foundation: fixed exceptions handling in zlib-output-streams constructors 2016-11-21 16:43:27 +03:00
Guenter Obiltschnig
86483b4d4b fixed GH #990: Potential race condition in on Windows 2016-11-03 14:48:51 +01:00
Alexey Milovidov
6116136afe Fixed error with Poco::UTF8Encoding::isLegal (wrong result on illegal sequence "\xED\x20\xA8"). 2016-10-29 20:12:29 +02:00
Guenter Obiltschnig
34f85a0531 branched off release 1.7.7 2016-10-21 22:20:03 +02:00
Guenter Obiltschnig
8290da2a82 fixed GH #1456: better handle leap seconds in Poco::DateTime and Poco::LocalDateTime 2016-10-17 19:05:53 +02:00
root
895c3dfcd5 use std::unique_ptr instead of std::auto_ptr with C++11+ compilers to prevent std::auto_ptr deprecation warnings 2016-10-14 11:49:45 +02:00
Guenter Obiltschnig
59a78a55b5 added POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX configuration macro to disable *d.so, *d.dll suffix in SharedLibrary class 2016-10-10 11:56:58 +02:00
Guenter Obiltschnig
cdb2195ed3 fixed GH #1431: Poco/FIFOBuffer.h copy issue 2016-10-07 21:27:07 +02:00
Guenter Obiltschnig
737bd98b17 fixed GH #1403: Android compile with poco-1.7.5 no 'pthread_condattr_setclock' error 2016-10-07 21:05:57 +02:00
Günter Obiltschnig
4a96c934ba improvement of URIStreamOpener::open() implementation 2016-09-29 19:06:46 +02:00
Günter Obiltschnig
07f6f77d6e added URISyntaxException; better error handling in URIStreamOpener 2016-09-29 17:41:37 +02:00
Guenter Obiltschnig
8d053e259c fixed issues reported by Klocwork 2016-09-26 18:15:43 +02:00
Guenter Obiltschnig
7c43cc8ec2 fixed issues reported by Klocwork 2016-09-26 18:15:36 +02:00
Guenter Obiltschnig
e07dbdc718 removed unneeded members 2016-09-26 17:45:53 +02:00
Guenter Obiltschnig
6441479f4d fixed potential memory leak in out-of-memory situations 2016-09-26 17:39:29 +02:00
Guenter Obiltschnig
1fb56d8c8e fixed issues reported by Klocwork 2016-09-26 17:28:41 +02:00
Guenter Obiltschnig
d59ff2ac1e fixed an unlikely potential memory leak if one of two new fails 2016-09-26 16:51:13 +02:00
Guenter Obiltschnig
efd9d539e5 fixed GH #1418:Poco::Delegate assignment operator fails to compile for some specializations 2016-09-20 20:47:58 +02:00
Guenter Obiltschnig
00b448a0c5 merged fix for #1315 2016-09-14 17:10:16 +02:00
Guenter Obiltschnig
7c37f18f84 fixed some warnings and minor issues detected by clang-analyzer 2016-09-13 11:37:12 +02:00
Guenter Obiltschnig
14a1ae810f add CLANG_ANALYZER_NORETURN macro 2016-09-13 07:43:39 +02:00
Guenter Obiltschnig
192a5f179f fixed some warnings 2016-09-06 15:49:39 +02:00
Guenter Obiltschnig
d221a7eebd created poco-1.7.6 branch 2016-09-06 15:29:00 +02:00
Guenter Obiltschnig
f89bea4411 - prefer clock_getttime() over gettimeofday() if available
- use CLOCK_MONOTONIC for POSIX condition in Poco::Event and Poco::Semaphore if supported
2016-08-28 15:25:55 +02:00
Guenter Obiltschnig
88c74fdf44 style fix 2016-08-27 08:31:32 +02:00
CREMARENCO Cosmin
b5b6135f94 Shell expansion rules say that tilde must be replaced with HOME if it exists and only after that we can look at getpwuid 2016-08-27 08:27:58 +02:00
Guenter Obiltschnig
46c6953bdf added Poco::SingletonHolder::reset() 2016-08-27 08:22:25 +02:00
Guenter Obiltschnig
9ccfcab380 created poco-1.7.5 branch 2016-08-25 08:35:07 +02:00
Guenter Obiltschnig
dda9d57d1c - prefer clock_getttime() over gettimeofday() if available
- use CLOCK_MONOTONIC for POSIX condition in Poco::Event and Poco::Semaphore if supported
2016-08-11 12:46:20 +02:00
Guenter Obiltschnig
1657fe0fb0 created branch for version 1.8.0 2016-08-08 19:08:58 +02:00
Guenter Obiltschnig
f848106fca added test for ws/wss schemes 2016-07-03 11:58:25 +02:00
Guenter Obiltschnig
c337634b8e fixed GH #1304: URI doesn't know ws:/ or wss:// schemes 2016-07-03 11:20:11 +02:00
Guenter Obiltschnig
de8d379d26 created branch for 1.7.4 release 2016-07-03 09:54:50 +02:00
Guenter Obiltschnig
27f41ee785 merge changes from develop 2016-04-21 09:36:53 +02:00
Guenter Obiltschnig
50240732f9 pre c++11 fixes 2016-04-21 09:25:26 +02:00
Guenter Obiltschnig
60987f5949 fixed GH #1253: ListMap does not maintain insertion order if key already exists 2016-04-21 09:24:59 +02:00
Guenter Obiltschnig
7448e16b76 style fixes 2016-04-16 09:41:08 +02:00
Günter Obiltschnig
913346c23d fixes for compatibility
Conflicts:
	Foundation/src/Process_WIN32.cpp
	Foundation/src/Process_WIN32U.cpp
2016-04-15 17:50:47 +02:00
Tony Abbott
6d17089b6c GH #1222 Escape command line arguments passed to Process::launch() on Windows
Conflicts:
	Foundation/testsuite/src/TestApp.cpp
2016-04-15 17:43:38 +02:00
Guenter Obiltschnig
d82b6b3975 branched off 1.7.3 2016-04-11 09:06:38 +02:00
Guenter Obiltschnig
9d21ddd8ca fixed GH #1204: getdtablesize has been removed on Android 21 2016-03-17 11:19:32 +01:00
Guenter Obiltschnig
65a92d4c5c updated version 2016-03-17 09:15:46 +01:00
Guenter Obiltschnig
7bcbbd7a35 fixed GH #1180: Possible deadlock when TaskManager::count is called in onFinished 2016-03-10 16:47:46 +01:00
Guenter Obiltschnig
f594c134ae updated version no. 2016-03-10 09:29:47 +01:00
Guenter Obiltschnig
15d1d0f1a2 build fixes 2016-03-05 14:29:34 +01:00
Günter Obiltschnig
aabb406794 updated project files 2016-03-04 10:25:12 +01:00
Guenter Obiltschnig
c22a36dc05 added Poco::EventChannel class 2016-02-29 21:53:17 +01:00
Guenter Obiltschnig
f83d759890 one more fix for #1002 2016-02-29 19:12:21 +01:00
Guenter Obiltschnig
f6cc0f7e8a updated CHANGELOG and version numbers 2016-02-29 11:19:38 +01:00
Günter Obiltschnig
3d1a094725 Merge pull request #1026 from zosrothko/Cygwin
Fixes for producing the poco-1.6.2 release on a Cygwin x86 platform
2016-02-28 15:29:08 +01:00
Guenter Obiltschnig
8c607d3213 fixed GH #1128: Poco::NumberFormatter::format(float, precision) rounding changed 2016-02-28 13:32:54 +01:00
Guenter Obiltschnig
a53e80f761 fixed GH #1002: ActiveDispatcher saves reference to event context after event was performed until it gets new event 2016-02-27 17:49:18 +01:00
Guenter Obiltschnig
925caa8dd3 fixed GH #1141: Poco::StringTokenizer::TOK_TRIM changes behavior between 1.4 and 1.6 2016-02-27 16:10:06 +01:00
Guenter Obiltschnig
f2ed9cc606 support for Win8/Win10 2016-02-22 11:51:51 +01:00
Guenter Obiltschnig
53c07395c5 fix merge issue 2016-02-13 23:38:00 +01:00
Guenter Obiltschnig
2522aefaf0 fix comment; don't send TaskProgressNotification if progress does not change
Conflicts:
	Foundation/src/Task.cpp
2016-02-13 20:24:31 +01:00
FrancisANDRE
e9c43f0d59 Add missing PocoJSON PocoXML
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-16 13:49:18 +01:00
Guenter Obiltschnig
910e2f3f29 fix error handling in setThreadName (#1022) 2015-11-13 11:11:32 +01:00
FrancisANDRE
b8e89231fc CMake: add -DPOCO_UNBUNDLED when unbundling.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 16:07:28 +01:00
FrancisANDRE
41a0db4c41 fix inclusion of <pcre> when unbundling
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 15:27:13 +01:00
FrancisANDRE
603e43ee7d Revert "Revert "avoid running SharedMemoryTest when POCO_NO_SHAREDMEMORY is defined.""
This reverts commit e1c0db371d.
2015-11-10 14:19:06 +01:00
FrancisANDRE
e1c0db371d Revert "avoid running SharedMemoryTest when POCO_NO_SHAREDMEMORY is defined."
This reverts commit 7d7bbfe5b2.
2015-11-10 14:11:08 +01:00
FrancisANDRE
7d7bbfe5b2 avoid running SharedMemoryTest when POCO_NO_SHAREDMEMORY is defined.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 14:09:53 +01:00
FrancisANDRE
9dc9aa7d17 use /dev/tty instead of /dev/consile for Cygwin
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 14:08:35 +01:00
FrancisANDRE
b4b42d2215 avoid testing FPE when POCO_NO_FPENVIRONMENT is defined
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 14:07:40 +01:00
FrancisANDRE
0b309571de add $pcre_utf8_objects to objects when building an unbundled version
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-11-10 14:06:51 +01:00
Kim Grasman
db635739c4 Fix #928: Workaround to fix -Wswitch warning 2015-11-10 09:38:17 +01:00
Guenter Obiltschnig
e3f98b554a GH #1022: clean-up setThreadName 2015-11-10 09:27:15 +01:00
Alex Boyd
40c2df1c52 overwrite existing files on windows when moving files 2015-10-09 09:36:30 +02:00
aaron0x
3066e66f32 Enhance FileChannel purge setting. 2015-10-02 09:35:18 +02:00
Guenter Obiltschnig
c6d3d08203 fix Foundation/samples CMakeLists.txt 2015-09-30 16:04:58 +02:00
Guenter Obiltschnig
bcead85c25 remove GCC_DIAG_OFF 2015-09-30 12:16:09 +02:00
Guenter Obiltschnig
4894222fe9 remove testcase causing travis failure 2015-09-30 11:10:35 +02:00
Guenter Obiltschnig
1d58c7436e fix unused type warning with poco_static_assert 2015-09-29 14:55:51 +02:00
Guenter Obiltschnig
8257b5aa71 tvOS support 2015-09-29 14:31:44 +02:00
Guenter Obiltschnig
d89c841298 setThreadName: abbreviate thread name if too long 2015-09-28 22:49:06 +02:00
Guenter Obiltschnig
e25a17030d integrated CMake improvements from develop (GH #946) 2015-09-26 11:11:23 +02:00
Guenter Obiltschnig
7e67335a97 added comments regarding encoding/decoding to getPath*() 2015-09-14 10:58:18 +02:00
Guenter Obiltschnig
883b1dac13 added comment regarding query strings (#767) 2015-09-14 10:58:05 +02:00
Guenter Obiltschnig
d3382b5934 NumberParser::parseHex[64](): allow 0x/0X prefix 2015-09-11 08:18:17 +02:00
Guenter Obiltschnig
b083364a94 fix GH #931: make strToInt() more strict in what it accepts 2015-09-11 08:16:44 +02:00
Guenter Obiltschnig
2d87888140 #921: better comment, provide workaround for MSVC only 2015-09-11 07:58:56 +02:00
Guenter Obiltschnig
3fa63fb502 another attempt at fixing #921 2015-09-11 07:58:26 +02:00
Guenter Obiltschnig
bceee7907d set-up poco-1.6.2 branch 2015-09-11 07:45:59 +02:00
Guenter Obiltschnig
25b7adb32e fix Version.h 2015-08-04 07:15:47 +02:00
Guenter Obiltschnig
aee279719b MemoryStreamTest: workaround for clang/OS X 2015-08-01 12:11:35 +02:00
Günter Obiltschnig
4f0b692d66 added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
Guenter Obiltschnig
1839606332 merge fix for #722 2015-07-31 12:32:52 +02:00
Guenter Obiltschnig
84094a4764 integrate fix for #769 2015-07-31 12:18:44 +02:00
Guenter Obiltschnig
e4dcb85c1f merge fix for #878 2015-07-31 12:17:20 +02:00
Aleksandar Fabijanic
5781bcbe35 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869 2015-06-23 21:07:01 -05:00
Aleksandar Fabijanic
bd057090c3 Var BadCastException #861 2015-06-10 09:04:19 -05:00
Alex Fabijanic
25cd53d953 Poco::Var operator== throws exception #769 2015-04-03 10:46:07 -05:00
Alex Fabijanic
f7e1bb4d7e StreamSocket::receiveBytes and FIFOBuffer issue in 1.6 #719 2015-03-28 20:06:15 -05:00
Pascal Bach
64710b2ff7 Add missing Path implementations for WINCE 2015-03-28 11:58:25 +01:00
Günter Obiltschnig
0a1218cd7e disable Timestamp hack on WinCE (re-enable with -DPOCO_WINCE_TIMESTAMP_HACK) 2015-03-28 11:56:10 +01:00
Guenter Obiltschnig
2d4dd2dc7d do not flush underlying stream on sync() as these causes issues with Zip files 2015-03-28 11:54:40 +01:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Alex Fabijanc
b2e209bf54 fix windows MemoryStreamTest build 2015-01-26 22:36:30 -06:00
Aleksandar Fabijanic
c14f8a8a69 Merge pull request #646 from adriaan42/develop
Prevent possible data race in access to Timer::_periodicInerval
2015-01-25 21:05:12 -06:00
Aleksandar Fabijanic
f440c4b101 Merge pull request #688 from martin-osborne/issue_297
Issue #297 - Added implementation of seekoff to BasicMemoryStreamBuf
2015-01-25 20:56:20 -06:00
Chris van Dijk
07d436a8b3 Include missing header, fixes #690 lack of monotonic Clock on Linux/POSIX
The macros _POSIX_TIMERS and _POSIX_MONOTONIC_CLOCK are defined in
(includes of) unistd.h, without them Clock falls back to using Timestamp
internally.
2015-01-26 02:27:43 +01:00
martin-osborne
683d7ce83b Added additional checks of tellp and tellg. 2015-01-25 11:41:24 +00:00
martin-osborne
3d7ecaa224 Correct comment in tests. 2015-01-25 10:20:34 +00:00
martin-osborne
9b2e897280 Removed comment. 2015-01-25 10:05:59 +00:00
martin-osborne
1c03740e41 Expanded tests to check boundary cases. 2015-01-25 08:59:44 +00:00
martin-osborne
c264a0d716 Restored original names for typedefs. Fixed gcc build. 2015-01-25 07:28:24 +00:00
martin-osborne
5e104addd3 Issue #297 - Implemented BasicMemoryStreamBuf::seekoff
This change adds support for `tellp`, `tellg` and seeking.

**Additional notes:**

+ `tellg` calls `rdbuf->pubseekoff(0, cur, out)` [lib.ostream.seeks] so need to
  provide an override of `seekoff`.
+ Requirements for `seekoff` are in 27.7.1.3.
+ 27.7.1.3 - Standard has a roundabout way of saying `cur` is valid if only one
  of `in` or `out` is specified (Condition 3).
+ `xend` is `egptr`/`epptr` (get area/put area).
+ `xbeg` is `eback`/`pbase` (get area/put area).
+ `xnext` is `gptr`/`pptr` (get area/put area).
+ `newoff` is a bit of a misnomer, the new offset into the stream is given by
  `newoff + off`.  `newoff` is really the start point.
+ You can set `gnext` with `setg`, but you can't do that with `setp` you have
  to `pbump` by the new offset minus the current offset.
2015-01-24 18:39:06 +00:00
martin-osborne
f79ab5b77a Merge branch 'develop' into issue_297 2015-01-24 08:53:07 +00:00
Aleksandar Fabijanic
4e6fad87dc Merge pull request #664 from cryptoknight/WriteOnCopy
Don't automatically make copied files writable on Windows
2015-01-16 15:33:32 -06:00
Scott Davis
e3c5cd30dc Test preservation of write attribute on file copy 2015-01-16 15:10:10 -05:00
Scott Davis
9913ee1ac8 Don't automatically mark copied files as writable on Windows (non-Unicode and CE) 2015-01-16 15:09:00 -05:00
Guenter Obiltschnig
92c607e767 code style and doc fixes 2015-01-09 19:04:58 +01:00
Scott Davis
fc24be6199 Don't automatically mark copied files as writable on Windows 2015-01-08 17:11:23 -05:00
Scott Davis
5fa4dc3da7 Add missing constructor for RecursiveDirectoryIterator 2015-01-08 17:02:46 -05:00
Alex Fabijanic
d992509f6e GCC diagnostic guard fix 2015-01-05 22:20:58 -06:00
Aleksandar Fabijanic
4ae9aa9674 building with gcc 4.6.3 gives lots lots of warnings #658 2015-01-01 22:47:03 -06:00
Alex Fabijanic
1b9aac5f7c Mingw64 #414 (small portion) 2015-01-01 14:41:09 -06:00
Alex Fabijanic
767d268eed moved PBKDF2 tests into VS120 project Crypt filter 2015-01-01 13:11:36 -06:00
Aleksandar Fabijanic
ed63fbd42c Merge pull request #653 from xantares/mingw_headers
Fix missing windows includes for mingw
2015-01-01 12:37:41 -06:00
Alex Fabijanic
eb04ffc423 style fixes 2015-01-01 12:35:26 -06:00
Aleksandar Fabijanic
f8e906171e Merge pull request #654 from xantares/win32_defines
fixed win32 defines
2015-01-01 12:16:57 -06:00
Asari Takashi
d1436c09fd Added WINDMC variable to build scripts 2014-12-25 09:53:44 +00:00
xantares
1e28368222 fixed win32 defines 2014-12-23 16:23:08 +01:00