Commit graph

5687 commits

Author SHA1 Message Date
Doug Simons
50f447f5b8
Fix execute_xpath() to return an NSError when expression can't be evaluated; Remove previous attributes when setting attributes; Add related tests 2024-05-14 15:25:07 -06:00
rfm
35bb9f48ef regular expression range search 2024-05-12 10:03:15 +01:00
Hugo Melder
37b7443b7c
Update ChangeLog 2024-05-08 16:30:02 +02:00
hmelder
2a5287f878 Update ChangeLog 2024-05-08 16:05:17 +02:00
rfm
a5beb6ab31 Fix for bug #399 2024-04-29 13:11:35 +01:00
Frederik Seiffert
ec8a7a3e97 Add +[NSObject _TrivialAllocInit] to enable fast-path alloc / init methods with libobjc2 2.2 2024-04-15 09:55:14 +02:00
rfm
d52708e020 Fix for #385 2024-04-02 11:07:14 +01:00
rfm
61da0dab96 fix possible dereference of null pointer 2024-03-11 14:36:22 +00:00
hmelder
f6d2806098 Update Changelog 2024-03-11 11:48:28 +01:00
rfm
619f902e9b ileak fix 2024-03-04 10:21:35 +00:00
rfm
cd2626e26b Attept fix for deadlock 2024-02-20 16:05:58 +00:00
rfm
d988153800 Fix for #361 2024-02-16 14:26:41 +00:00
rfm
d444f1fb3f windows socket fixes 2024-02-13 15:09:43 +00:00
rfm
815556ddf9 OSX compatibility fix 2024-02-13 12:41:34 +00:00
rfm
c0b9ba8992 Possible fox for #319 2024-02-12 06:10:44 +00:00
rfm
ec914793c3 fix for #302 2024-02-11 19:50:06 +00:00
rfm
be12e91109 locale method fixup with testcase 2024-02-11 15:03:37 +00:00
Frederik Seiffert
6d1fe8fadf Initialize Android process with current locale and system time zone 2024-02-11 09:04:04 +01:00
rfm
79a1a6b944 fix for #368 2024-02-06 14:22:04 +00:00
rfm
d6bb6deff6 fix small bug and add optimisation 2024-02-02 15:40:44 +00:00
Frederik Seiffert
f7eff46e86 Fix NSLocale -countryCode incorrectly returning language code 2024-02-01 10:27:14 +01:00
rfm
46e7064393 Stream debug and event handling improvements 2024-01-30 15:08:31 +00:00
rfm
41d948b5bb patch to improve thread startup by Larry Campbell 2024-01-29 19:50:44 +00:00
rfm
b7f66a9dd3 fix for issue #365 2024-01-29 14:27:32 +00:00
rfm
a0ce4ab880 keep observer retained until removed 2024-01-09 08:25:28 +00:00
hmelder
3d6a149788 Update ChangeLog 2023-12-28 12:02:04 +01:00
rfm
695b650d4a add project authors in index 2023-12-21 21:32:35 +00:00
rfm
9acd9f8e76 document autogsdoc change 2023-12-21 20:24:07 +00:00
rfm
c739ac81bd Another path fix 2023-12-19 14:24:13 +00:00
rfm
70e56ecfea bugfix by by danieljboyd@icloud.com 2023-12-06 17:40:06 +00:00
rfm
aec85c5a4f remove obsolete size restriction on port messages 2023-12-05 14:33:56 +00:00
rfm
07fed93200 Improvements for github issue 352 2023-11-23 16:39:58 +00:00
rfm
d98bc5cf2f Fix path format for backslashes on windows 2023-11-21 13:18:43 +00:00
rfm
5917e32dbb Add macro to mark unimplemented functions and methods 2023-11-21 08:54:39 +00:00
Frederik Seiffert
fd7f11a134 Support deleting NSMutableURLRequest headers by calling setValue:forHTTPHeaderField: with nil value. 2023-11-14 23:04:42 +01:00
rfm
b4feee311f Fix for #334 2023-11-14 21:20:50 +00:00
rfm
e8b67e3e0b fix for #292 2023-11-14 20:55:22 +00:00
rfm
41ad571889 ChangeLog recording autogsdoc improvments 2023-11-14 20:06:59 +00:00
rfm
ae9892db11 Use closefrom() if available 2023-11-14 11:34:55 +00:00
rfm
1942313dea NSISO8601DateFormatter bugfix (as reported by kevinpeizner) and tweaks. 2023-10-26 14:19:06 +01:00
Richard Frith-Macdonald
a5a9423c10 Return error if task directory is bad 2023-10-10 17:01:52 +01:00
Wolfgang Lux
3ed5eb3dcf Use _exit instead of exit to terminate a vfork'ed process.
This avoids running the atexit handlers, which could have visible side
effects in the parent process.
2023-10-09 22:51:01 +02:00
Richard Frith-Macdonald
531d3b8559 Small array keyword fixes for NSPredicate 2023-10-08 13:48:33 +01:00
Gregory John Casamento
19cfd59b47 update changelog 2023-10-07 20:51:47 -04:00
Richard Frith-Macdonald
c1833e1130 Github issue #312 ... add thread safety for Apple compatibility 2023-08-18 11:21:24 +01:00
Frederik Seiffert
668d6c4977 Change NSNumberFormatter minimum/maximum properties from NSDecimalNumber to NSNumber to match Apple platforms 2023-08-10 12:20:06 +02:00
Richard Frith-Macdonald
cd231a3efd More fixes from Yavor 2023-08-01 16:37:22 +01:00
Richard Frith-Macdonald
ef9ad60627 Add Yavor Doganov's patches 2023-08-01 14:46:44 +01:00
Frederik Seiffert
0aaa5307c8 Fix NSData initWithContentsOfURL: caching data of file URLs 2023-08-01 13:27:54 +02:00
Frederik Seiffert
48c8a1a6a1 Fix NSURL path on Windows for UNC paths 2023-07-26 18:21:07 +02:00
Frederik Seiffert
f0e33a48d5 Fix NSFileManager thread safety 2023-07-26 11:56:04 +02:00
Richard Frith-Macdonald
d643dad9b3 record Riccardo's fix 2023-07-10 21:45:10 +01:00
Richard Frith-Macdonald
c6df659d35 iClose socket if we end loading with an I/O operation in progress 2023-06-26 12:55:01 +01:00
Richard Frith-Macdonald
e3b7fa5720 Fix for possible crash after instance deallocated 2023-06-15 10:21:39 +01:00
Richard Frith-Macdonald
231151aea3 missed update 2023-05-10 12:29:07 +01:00
Frederik Seiffert
810061f6e7 NSOrderedSet: Fix keyed encoding to match Apple platforms 2023-05-04 12:46:37 +02:00
Richard Frith-Macdonald
a5a1ef0413 Ignorew writabel descriptor when we have nothng to write 2023-05-04 09:59:31 +01:00
Richard Frith-Macdonald
f7aa3a940a fix typo 2023-04-27 09:57:21 +01:00
Frederik Seiffert
52548e3d09 Fix -[NSFileManager contentsOfDirectoryAtURL:...] 2023-04-27 10:51:15 +02:00
Richard Frith-Macdonald
a2f63bfec0 use non-blocking mode to accept connections 2023-04-13 14:27:09 +01:00
Richard Frith-Macdonald
c7125ec291 Fix for github bug #289 2023-03-23 21:38:46 +00:00
Frederik Seiffert
cb6c53b84d Fix NSURLSession header fields not always being matched case insensitive. 2023-03-11 20:22:00 +01:00
Frederik Seiffert
18f81f9ccc Fix NSURLSession memory management of libdispatch objects and overrelease in GSHTTPURLProtocol. 2023-03-11 20:22:00 +01:00
Frederik Seiffert
2f5b26df06 Add missing NSURLSession APIs 2023-03-11 20:22:00 +01:00
Richard Frith-Macdonald
3631c4b068 Fix possible exception setting header value 2023-02-09 11:03:21 +00:00
Richard Frith-Macdonald
b8aedfc53e Fix recently introduced bug with premature connection close 2023-02-01 19:17:12 +00:00
Richard Frith-Macdonald
10f86fed2d revert stupid change 2023-01-24 14:09:53 +00:00
Richard Frith-Macdonald
35a763f3cb Aim to improve thread safety of stacktrace generation. 2023-01-24 11:35:14 +00:00
Richard Frith-Macdonald
c6af8ef4bf bugfix release 2023-01-08 08:41:32 +00:00
Richard Frith-Macdonald
7f84bd9fc2 fix version number error 2022-12-28 12:55:54 +00:00
Richard Frith-Macdonald
24022dfe02 Add updated timeznes to release 2022-12-28 12:46:59 +00:00
Richard Frith-Macdonald
aeaca5ba49 New release 2022-12-28 11:46:43 +00:00
Richard Frith-Macdonald
91108c69c3 tweak handling of parser abort 2022-12-09 10:23:14 +00:00
Richard Frith-Macdonald
1cb6ef8572 Attept to support proxy environment variables 2022-11-29 11:16:36 +00:00
Fred Kiefer
1a96e83c08 * Source/Additions/GSXML.m: Remove usage of deprecated function
when a newer version of libxml is used.
2022-11-26 14:26:30 +01:00
Richard Frith-Macdonald
94a8b046b0 Patch for bug #63408 by Florian Weimer 2022-11-25 09:43:10 +00:00
Wolfgang Lux
47d2446df4 Really skip hidden files when requested in a directory enumeration 2022-11-21 12:03:06 +01:00
Richard Frith-Macdonald
d5d8a71c79 Allow certificate based rejection of DO connection attempts. 2022-11-21 10:40:33 +00:00
Richard Frith-Macdonald
483777bfa9 improve event handling when data is in tls buffers 2022-11-15 15:27:04 +00:00
Richard Frith-Macdonald
78642305c6 Fix for occasional hang 2022-11-07 10:03:16 +00:00
Richard Frith-Macdonald
37f5a2f9e1 tweak life of the I/O of a connection. 2022-10-21 16:37:54 +01:00
Richard Frith-Macdonald
09a9a8fe5b Honor SSL_CERT_FILE environment vartiable 2022-10-20 10:24:42 +01:00
Richard Frith-Macdonald
726d24bac7 Make http keepalive for GSHTTPURLHandle more robust. 2022-10-18 18:01:02 +01:00
Hugo Melder
a8c421d485
Skip all NSURL* test cases using GSInetServerStream on Windows (#268)
* Mark all test cases using GSSocketStream as hopeful on win32

* Update ChangeLog

* Remove allow-test-failures flag
2022-09-27 20:21:50 +02:00
Hugo Melder
63703e0a80
Improve strict C99 support by explicitly including headers (#275)
* Explicitly include headers in config and tests

* Update ChangeLog
2022-09-15 12:24:49 +02:00
Hugo Melder
7fd20d1ae3
NSPredicate Value Fix
* Check if object is an NSExpression object

* Fix Indentation

* Update Changelog

* Add test case
2022-08-24 18:01:30 +02:00
Hugo Melder
32eb5d2acd
win32: Support overlapped (asynchronous) I/O on standard streams in GSFileHandle
* win32: Support overlapped I/O on standard streams in GSFileHandle

* Add isStandardInput instance variable

* Restrict PeekConsoleInput on stdin

* Update ChangeLog
2022-08-23 18:43:14 +02:00
Richard Frith-Macdonald
560b1d19fb relax limit on maximum concurrent operations 2022-08-16 09:36:27 +01:00
Hugo Melder
fe14647b90 Update ChangeLog 2022-08-11 16:35:58 +02:00
Hugo Melder
9a0b660299
Merge branch 'master' into NSTimeZone-win32-fix 2022-08-11 11:59:07 +02:00
Hugo Melder
f5a983a037
Merge pull request #256 from gnustep/msvc-test-fixes
GSTLS, NSData, NSString Unit Test Fixes on Windows MSVC
2022-08-11 11:57:21 +02:00
Hugo Melder
ca9136397d
Merge branch 'master' into NSBundle-msvc-tests 2022-08-11 09:16:06 +02:00
Hugo Melder
0437571323
Update ChangeLog 2022-08-09 12:10:50 +02:00
Hugo Melder
b55da09618 Update ChangeLog 2022-08-07 11:10:54 +02:00
Hugo Melder
5119be8150 Update ChangeLog 2022-08-05 12:59:27 +02:00
Hugo Melder
0b29cbdcc9 Update ChangeLog 2022-08-04 17:11:13 +02:00
Hugo Melder
d14d06d8ae Add ChangeLog 2022-08-04 13:24:07 +02:00
Hugo Melder
5ba2b974a3
Update ChangeLog 2022-08-03 17:36:19 +02:00
Richard Frith-Macdonald
abd5223579 Fixup debug logging of http requests with authentication 2022-07-27 13:52:01 +01:00
Richard Frith-Macdonald
1934ce6205 Changes to avoid placing sensitive information in debug logs. 2022-05-20 12:32:31 +01:00
Richard Frith-Macdonald
57eae2e779 Small logging improvement for exception returned when we are expecting nothing 2022-04-14 15:46:21 +01:00
Richard Frith-Macdonald
2a80449c4b Change for normalisation of composed charactr sequences 2022-04-07 14:37:13 +01:00
Gregory John Casamento
e99dd4ec6b Add implementation for getEra:... and getHour:... method in NSCalendar. Add documentation to all methods. 2022-04-06 14:19:36 -04:00
Gregory John Casamento
3c29d9a1a8 Add changelog entry 2022-03-07 07:37:32 -05:00
Richard Frith-Macdonald
ae72ee4593 Fix for #243 2022-03-07 10:13:44 +00:00
Richard Frith-Macdonald
ea1575b63c fix bug in testing whether an NSDistantObject responds to selectors. 2022-02-25 13:00:55 +00:00
Richard Frith-Macdonald
c76ebf2962 Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
and deprecate it.  Searched for and removed obsolete references to
garbage collection in comments and documentation.
2022-02-17 10:08:18 +00:00
Richard Frith-Macdonald
3bc05ad580 Patch by Larry Campvell for git #237 2022-02-12 13:06:23 +00:00
Richard Frith-Macdonald
a89dc604dd Fix minor debug logging error 2022-02-11 17:39:47 +00:00
Richard Frith-Macdonald
e9ed77fb68 Fixups for memory amangement and thread safety issues 2022-01-31 16:57:10 +00:00
Richard Frith-Macdonald
f3344628e5 fix for arrya constant 2022-01-30 17:24:32 +00:00
Frederik Seiffert
1aab02b622 Fix NSTemporaryDirectory() returning path with backslashes on Windows 2022-01-26 10:33:33 +01:00
Frederik Seiffert
542d870302 Fix time zone lookup on Windows MSVC by converting Windows timezone name to IANA identifier 2022-01-26 10:33:33 +01:00
Richard Frith-Macdonald
bed2935a7e change to avoid compiler warning 2022-01-04 12:57:55 +00:00
Richard Frith-Macdonald
cc38a942f2 Restore Canonical names of gnustep extension encodings 2022-01-04 12:46:56 +00:00
Richard Frith-Macdonald
81ad2f403b Reinstate removed string encodings. 2022-01-04 10:12:58 +00:00
Frederik Seiffert
b4ae7f7486 Fix handling of concurrent NSOperations 2021-12-27 21:52:34 +01:00
Frederik Seiffert
7a5c2a6550 Default to UTF-8 when reading localized string files without BOM. 2021-12-26 11:43:43 +01:00
Richard Frith-Macdonald
40de7fa39a Try to improve tls disconnect behavior where there are networking issues 2021-12-07 19:28:23 +00:00
Richard Frith-Macdonald
5ecd7fe1b2 Fix problem finding libbfd support on some systems 2021-11-23 14:08:42 +00:00
Gregory John Casamento
02a4762e99 Remove conflict line 2021-11-21 02:20:53 -05:00
Gregory John Casamento
d8b2e969ef Add NSConnectionDataDelegate protocol and NSRequestNetworkServiceType 2021-11-21 02:17:55 -05:00
Gregory John Casamento
eb743541aa Add NSConnectionDataDelegate protocol and NSRequestNetworkServiceType 2021-11-21 02:16:24 -05:00
Richard Frith-Macdonald
b7d82408a6 Make URL loading tests more reliable 2021-11-19 11:44:20 +00:00
Frederik Seiffert
87783e2513 Annotate NSBundle localized string function with NS_FORMAT_ARGUMENT. 2021-11-11 16:41:50 +01:00
Frederik Seiffert
80f05c2278 Fix -[NSFileManager URLForDirectory:...] using incorrect NSURL initializer and simplified implementation 2021-10-20 18:42:21 +02:00
Richard Frith-Macdonald
c307a04a39 Fix minor leaks 2021-09-16 10:25:26 +01:00
Richard Frith-Macdonald
149acc40ae fix minor potential leaks 2021-09-16 10:20:41 +01:00
Richard Frith-Macdonald
99ef0c9665 Forgot to update change log 2021-08-27 11:51:45 +01:00
rfm
1e8ff8e628
Merge branch 'master' into nstimezone 2021-08-18 14:52:24 +01:00
Richard Frith-Macdonald
c43ea6d474 Update for handling more future dates, and further testing. 2021-08-14 11:25:23 +01:00
Frederik Seiffert
f67c99dbcc win32: initialize Windows Sockets in NSObject only
And update to Windows Socket version 2.2. Also clean up the DllMain initialization to handle CRT init errors and call _CRT_INIT also on DLL/thread detach, and remove uneeded .idata section after removing WSAStartup() import.

WSAStartup() should not be called from DllMain according to MS documentation. Fixes #186.
2021-08-11 19:32:21 +02:00
Richard Frith-Macdonald
5162d888dc timezone updates for version2 files 2021-08-11 08:43:20 +01:00
Frederik Seiffert
b969347587 Use pkgconfig to find libxslt 2021-08-03 16:55:56 +02:00
Frederik Seiffert
dc32970502 Add support for using ICU DLL from Windows 10
Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-

Also adds missing configure check for unicode/utext.h.
2021-08-03 16:52:38 +02:00
Frederik Seiffert
abfe4e2a04 Use native threading and locking APIs on Windows
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.

Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
3b8bbb00ba Try to make timezone parsing more robust: always use standard header for posix time zone files. 2021-07-29 10:35:19 +01:00
Richard Frith-Macdonald
0b3f2a9fb0 Fixup for incorrect method implementation used in sloppy parser. 2021-07-26 14:57:41 +01:00
Richard Frith-Macdonald
7245156336 Add sup[port for 64bit time transitions 2021-07-22 10:33:49 +01:00
Frederik Seiffert
a377a86094 Fix possible memory corruption in string handling 2021-07-19 12:23:15 +02:00
Frederik Seiffert
47ed291b80 Fix possible heap corruption when converting to NSNonLossyASCIIStringEncoding. 2021-07-03 08:34:14 +02:00
Richard Frith-Macdonald
a29248bd4d Differentiate between client/server for DO over TLS 2021-06-24 08:50:28 +01:00
Richard Frith-Macdonald
e34584e323 Encryption emprovements 2021-06-19 14:40:47 +01:00
Frederik Seiffert
8137b5a2a0 Fix lookup of string encodings with high numeric values in encoding table 2021-06-17 17:53:22 +02:00
Richard Frith-Macdonald
7ea49c252b encryption fixes and debug improvements 2021-06-03 14:59:09 +01:00
Gregory John Casamento
ed0a6bd7bd Fix changelog after merge from master. 2021-06-02 08:37:41 -04:00
Gregory John Casamento
68bac0b3b1 Add missing import for NSByteCountFormatter into Foundation.h 2021-06-02 08:36:14 -04:00
Richard Frith-Macdonald
e42d9fdc6b New code for secure (encrypted) inter-host distrinuted objects. 2021-05-31 13:19:42 +01:00
Richard Frith-Macdonald
c54a673f79 Document the most recent win32 bugfix for large writes. 2021-05-23 11:04:24 +01:00
Richard Frith-Macdonald
7424bd5884 Another mswindows bugfix for network comms 2021-05-19 11:17:19 +01:00