1823 Commits

Author SHA1 Message Date
Gleb Popov
675f73fced Fix building of FileStreamTest.cpp on FreeBSD
According to POSIX, S_IRGRP et all are defined in sys/stat.h, so the code
that uses these defines should include that header
2025-08-10 09:30:20 +02:00
Duncan Cunningham
5f998cbb90
Fix Thread_POSIX not compiling with Emscripten (#4986) 2025-08-08 22:54:07 +02:00
Matej Kenda
e8f4f3f445 chore (sources): Remove executable bit from source files. 2025-07-01 13:52:21 +02:00
Matej Kenda
e2c2899d4e fix(Config.h): Corrected handling of supported C++ standards (#4973) 2025-06-24 14:21:51 +02:00
Matej Kenda
735e174d90
Async notification center (dispatch notifications asynchronously) (#4957) 2025-06-12 21:12:57 +02:00
Matej Kenda
7b58bc10e7
Poco::File create path (#4873) (#4959)
* #4202 Checked if the path exists, create one if not

* Addressed comments

* fix(Poco::File): resolve compile errors related to createfile.

---------

Co-authored-by: capak07 <69026837+capak07@users.noreply.github.com>
2025-05-29 10:50:58 +02:00
Matej Kenda
733f0c34e0 Merge remote-tracking branch 'origin/poco-1.14.2' 2025-05-28 16:36:28 +02:00
Matej Kenda
15d987fbb0
enh(cmake): Add option POCO_ENABLE_CPP20 to enable C++20 when compiling Poco (#4956)
* enh(cmake): Add option POCO_CXX20 to enable standard C++20 and related changes.

* chore(cmake): do not allow C++20 setting for compilers that do not support it properly.

* fix(NetSSL_Win): indentation.
2025-05-28 15:35:28 +02:00
Aleksandar Fabijanic
5e5e1a60f9
fix(TaskManager): memory leak #4949 (#4950) 2025-05-19 11:44:28 +02:00
Ben Wolsieffer
4b8f0a36a6 CMake: make utf8proc, PCRE2, zlib and expat private dependencies
In the unbundled build, utf8proc, PCRE2, zlib and expat were all
included as part of the CMake link interface, and therefore the CMake
config file required find_dependency() calls for each.

These libraries are internal implementation details of Poco and are not
exposed in any public API. Therefore, we can make them private
dependencies and avoid the find_dependency() calls and their associated
find scripts.
2025-05-12 08:23:45 +02:00
Matej Kenda
f437630085 enh(Environment): Windows: report strings for all PROCESSOR_ARCHITECTURE_* constants (#4928). 2025-05-11 18:44:13 +02:00
Ben Wolsieffer
33de65c0fe CMake: make utf8proc, PCRE2, zlib and expat private dependencies
In the unbundled build, utf8proc, PCRE2, zlib and expat were all
included as part of the CMake link interface, and therefore the CMake
config file required find_dependency() calls for each.

These libraries are internal implementation details of Poco and are not
exposed in any public API. Therefore, we can make them private
dependencies and avoid the find_dependency() calls and their associated
find scripts.
2025-05-11 18:29:22 +02:00
Matej Kenda
a92fff329d enh(Environment): Windows: report strings for all PROCESSOR_ARCHITECTURE_* constants (#4928). 2025-05-11 18:22:14 +02:00
Günter Obiltschnig
0b782f3c2f chore: fix test failures when ran from a VS solution build 2025-03-28 19:29:00 +01:00
Günter Obiltschnig
fbf0bf4c64 chore: fix test failures when ran from a VS solution build 2025-03-28 19:28:33 +01:00
Günter Obiltschnig
2fb28fac49 chore: add clean target to trace Makefile 2025-03-25 08:46:56 +01:00
Günter Obiltschnig
4df0c9c5d7 chore: add clean target to trace Makefile 2025-03-25 08:46:37 +01:00
Aleksandar Fabijanic
4b093d8f89 fix(VarHolder): MSVC warning #4886 (#4903)
* fix(VarHolder): MSVC warning #4886

* fix(VarHolder): do not convert unsigned #4886

* chore(SocketImpl): eliminate MSVC warning

* fix(VarHolder): do not convert unsigned (extract unpreserveSign()) #4886

* chore(testsuite): eliminate MSVC warnings

* chore(VarHolder): simplify unpreserveSign using constexpr.

---------

Co-authored-by: Matej Kenda <matejken@gmail.com>
2025-03-20 12:35:48 +01:00
Aleksandar Fabijanic
8fb80fd76e
fix(VarHolder): MSVC warning #4886 (#4903)
* fix(VarHolder): MSVC warning #4886

* fix(VarHolder): do not convert unsigned #4886

* chore(SocketImpl): eliminate MSVC warning

* fix(VarHolder): do not convert unsigned (extract unpreserveSign()) #4886

* chore(testsuite): eliminate MSVC warnings

* chore(VarHolder): simplify unpreserveSign using constexpr.

---------

Co-authored-by: Matej Kenda <matejken@gmail.com>
2025-03-20 12:34:55 +01:00
Matej Kenda
66399faafc Fix dynamic var conversion precision check (#4886) (#4894)
* Take the absolute value of the value in numValDigits to fix the precision loss check for negative values.

* fix(VarHolder): Correct numValDigits to properly convert to signed integer.

* Potential fix for code scanning alert no. 1075: Declaration hides variable

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Mias <mias@innoventix.co.za>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-03-11 13:30:50 +01:00
Matej Kenda
91244ac9d9
Fix dynamic var conversion precision check (#4886) (#4894)
* Take the absolute value of the value in numValDigits to fix the precision loss check for negative values.

* fix(VarHolder): Correct numValDigits to properly convert to signed integer.

* Potential fix for code scanning alert no. 1075: Declaration hides variable

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Mias <mias@innoventix.co.za>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-03-11 13:29:38 +01:00
Günter Obiltschnig
4b52cc6b25 chore: branch for 1.14.2 2025-02-27 14:06:26 +01:00
Matej Kenda
337f13414d
CMake: Include pcre2 source files to unbundled build based on pcre2 library type (#4879) 2025-02-21 11:55:59 +01:00
Günter Obiltschnig
4c2128ccdb doc: workaround for PocoDoc failure to parse Any.h 2025-02-14 17:16:04 +01:00
Günter Obiltschnig
726a9b6349 doc: workaround for PocoDoc failure to parse Any.h 2025-02-14 17:15:29 +01:00
Matej Kenda
e7687d4bba enh(Foundation): modernised header files (override, using, nullptr, ...) 2025-02-12 19:47:52 +01:00
Matej Kenda
9e4e039c04 Merge remote-tracking branch 'origin/poco-1.14.1' 2025-02-12 19:45:42 +01:00
Matej Kenda
12d78aa68f chore(release): Update release and version files. 2025-02-11 15:39:04 +01:00
Günter Obiltschnig
529783952e enh(Foundation): Windows Eventviewer not able to find PocoFoundation DLL #3304 2025-02-11 12:34:19 +01:00
Günter Obiltschnig
f23e2eb1c8 enh(Foundation): Windows Eventviewer not able to find PocoFoundation DLL #3304 2025-02-10 22:26:09 +01:00
Matej Kenda
f155ba3957 fix(cmake): Add back missing compiler definitions for static_build in the generated CMake files 2025-02-10 08:32:54 +01:00
Günter Obiltschnig
0ec643a0a8 fix(Foundation): Poco::icompare(str, pos, ptr) out of bounds error if pos > str.size() #4866 2025-02-10 08:32:26 +01:00
Matej Kenda
0434c41ad5 fix(cmake): Add back missing compiler definitions for static_build in the generated CMake files 2025-02-10 08:28:11 +01:00
Günter Obiltschnig
4b55efdcf3 fix(Foundation): Poco::icompare(str, pos, ptr) out of bounds error if pos > str.size() #4866 2025-02-08 14:54:18 +01:00
Matej Kenda
eeb31fa1d0 fix(Foundation): detection of CXXABI is based on presence of the header file, simplify conditions. 2025-02-07 12:18:01 +01:00
Matej Kenda
ca969f9ec3 fix(Foundation): detection of CXXABI is based on presence of the header file, simplify conditions. 2025-02-07 12:17:14 +01:00
Matej Kenda
b28b3c719c fix(NumberParser): tryParseHex shall not throw, but return boolean 2025-02-04 12:32:03 +01:00
Matej Kenda
5b7fbda0cb fix(NumberParser): tryParseHex shall not throw, but return boolean 2025-02-04 11:01:10 +01:00
Matej Kenda
674e2bae97 fix(templates): Corrected explicit template instantiations to avoid multiple instances. 2025-01-14 15:13:49 +01:00
Matej Kenda
daf19e5223 fix(templates): Corrected explicit template instantiations to avoid multiple instances. 2025-01-14 15:09:30 +01:00
Matej Kenda
af36c9badf fix(Any): Modifications to fix OSS Fuzz report (#4818)
Changes triggered by the OSS Fuzz report: https://issues.oss-fuzz.com/issues/42538385?pli=1

* fix(Any): set pHolder to nullptr in destruct()

* enh(Any): modernised source code.

* enh(Any): introduce allocation type (empty, local, external).

* chore(Any): Apply suggestions from code review.
2025-01-08 17:01:54 +01:00
Matej Kenda
bd7be38d6f
fix(Any): Modifications to fix OSS Fuzz report (#4818)
Changes triggered by the OSS Fuzz report: https://issues.oss-fuzz.com/issues/42538385?pli=1

* fix(Any): set pHolder to nullptr in destruct()

* enh(Any): modernised source code.

* enh(Any): introduce allocation type (empty, local, external).

* chore(Any): Apply suggestions from code review.
2025-01-08 17:01:27 +01:00
Matej Kenda
7495f0592c enh(Poco::Dynamic): Modernised code to use C++17 features. 2025-01-08 15:14:39 +01:00
Matej Kenda
3971ad2b00 fix(CMake): Select MSVC runtime library with variable CMAKE_MSVC_RUNTIME_LIBRARY (fixes #4817) (#4823)
* fix(CMake): Select MSVC runtime library with variable CMAKE_MSVC_RUNTIME_LIBRARY instead of modifying compiler flags.

* enh(CI): Add static and MT MSVC builds.

* fix(CMake): Correct TestLibrary DLL name when building with MSVC
2024-12-27 12:49:07 +01:00
Matej Kenda
c9dc1f9d3c
fix(CMake): Select MSVC runtime library with variable CMAKE_MSVC_RUNTIME_LIBRARY (fixes #4817) (#4823)
* fix(CMake): Select MSVC runtime library with variable CMAKE_MSVC_RUNTIME_LIBRARY instead of modifying compiler flags.

* enh(CI): Add static and MT MSVC builds.

* fix(CMake): Correct TestLibrary DLL name when building with MSVC
2024-12-27 12:47:23 +01:00
Matej Kenda
b5873caae5 CMake: fix for missing utf8proc with unbundled build, resolves #4798 (#4816)
* fix(cmake): Add missing install and find dependency for utf8proc in unbundled build.

* chore(gitignore): Corrected path to Qt creator generated build files.
2024-12-11 16:19:33 +01:00
Matej Kenda
b380b57d5d
CMake: fix for missing utf8proc with unbundled build, resolves #4798 (#4816)
* fix(cmake): Add missing install and find dependency for utf8proc in unbundled build.

* chore(gitignore): Corrected path to Qt creator generated build files.
2024-12-11 16:18:04 +01:00
Alex Fabijanic
eabfbf14b0 fix(cmake): remove libatomic dependency 2024-12-11 16:14:46 +01:00
Aleksandar Fabijanic
e2576ff5ab
fix(cmake): remove libatomic dependency (#4811) 2024-12-07 23:35:39 +01:00
nyashbox
b92c6b22b1
test(Format): test shortest representation format specifiers 2024-12-02 02:10:41 +02:00