Commit graph

5610 commits

Author SHA1 Message Date
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
Richard Frith-Macdonald
740180a9d1 add detail about why the change was made 2021-05-19 10:59:21 +01:00
Richard Frith-Macdonald
ed9bb899a7 Support writing large chunks of data over tls on windows 2021-05-15 16:10:23 +01:00
Richard Frith-Macdonald
782e7aed31 Fix for -setHTTPMaximumConnectionLifetime: 2021-05-05 12:04:28 +01:00
Ivan Vučica
326dc210a4
release-chore: Release 1.28. 2021-04-26 22:02:53 +01:00
Ivan Vučica
d2eca82730
release-chore: Update docs for a future 1.28 release. 2021-04-22 22:41:04 +01:00
Ivan Vučica
ea7e2c1e30
release-chore: Fix ChangeLog entry for plutil.
There was an incorrect email address and a less-useful message.
2021-04-22 22:18:58 +01:00
Ivan Vučica
7f1b604b88
release-chore: Fix formatting in ChangeLog. 2021-04-22 22:18:57 +01:00
Ivan Vučica
f026abaf1b
release-chore: Fix rfm's email address in the ChangeLog. 2021-04-22 22:18:52 +01:00
Richard Frith-Macdonald
efccdb1d71 update 2021-04-14 10:10:57 +01:00
Frederik Seiffert
843800d413 Add support for libobjc2 runtime in NSObject on Windows 2021-03-29 11:22:00 +02:00
Frederik Seiffert
0582eddd96 Export string constants and annotate exported function implementations
Moves scattered string constants to externs.m, and removes obsolete code replacing constant strings.
2021-03-27 17:36:15 +01:00
Frederik Seiffert
5fb5fb46c4 Win MSVC: add NSFileManager support
Also unifies _CHAR in NSFileManager with GSNativeChar, as they are internally required to be the same.
2021-03-17 17:42:15 +01:00
Frederik Seiffert
54ae296b69 Fix libdispatch integration compilation error on Windows. 2021-03-17 17:42:15 +01:00
Richard Frith-Macdonald
810294f2df update 2021-03-05 11:56:07 +00:00
Frederik Seiffert
172e75b865 Add unscheduled NSTimer block initializer. 2021-03-03 10:03:14 +01:00
Richard Frith-Macdonald
ebfd7a2bea update 2021-02-27 15:15:39 +00:00
Frederik Seiffert
5c562c546f Windows MSVC fixes 2021-02-12 14:33:04 +01:00
Fred Kiefer
46c463c006 * Tools/make_strings/StringsFile.m: Write the file in UTF8 format
if the string contains any non ASCII character.
2021-02-05 22:56:15 +01:00
Frederik Seiffert
9725e77c9d Disable gdomap on Android (unsupported). 2021-02-03 17:55:12 +01:00
Frederik Seiffert
61709e6101 Support building on Windows with Clang MSVC target 2021-02-03 15:02:27 +01:00
Riccardo Mottola
ece6fc97ff Add check for statbuf.st_mtim if available and use statbuf.st_mtim to get nanosecond precision in modification date, also fix conversion of nanoseconds in creation date. 2021-02-02 23:30:18 +01:00
fredkiefer
3b1bf24b26 * Tools/pl2link.m (main): Set key StartupWMClass and allow file
parameters of the Exec key.
2021-01-21 21:26:00 +01:00
Richard Frith-Macdonald
4784da65ef new log 2021-01-21 14:29:11 +00:00
Richard Frith-Macdonald
4e826135ce Updated for some minor leak fixes 2021-01-19 11:17:23 +00:00
Richard Frith-Macdonald
3efce5f271 Update from git log 2021-01-19 05:12:54 -05:00
Frederik Seiffert
88a2e0809f Add NSFileHandle URL initializers.
Also use "instancetype" for all initializers.
2020-11-17 19:48:05 +01:00
Richard Frith-Macdonald
a34beadb8e Merge branch 'gnustep_testplant_mergeback' of https://github.com/TestPlant/libs-base into TestPlant-gnustep_testplant_mergeback
Conflicts:
	ChangeLog
2020-11-13 05:39:15 +00:00
rfm
17af685b1a
Merge branch 'master' into nsurl-additions 2020-11-06 09:36:42 +00:00
Adam Fox
0b69d88ee2 Implementation of [NSData rangeOfData:options:range], adapted from [NSString rangeOfString:options:range]. 2020-10-12 12:22:00 -06:00
fredkiefer
93d4576871 * Source/NSDateComponentsFormatter.m: Fix use of wrong operator. 2020-08-30 22:27:08 +02:00
Frederik Seiffert
01e7034262 Add NSURL methods:
- URLByAppendingPathComponent:isDirectory:
- isFileReferenceURL (always returns NO)
- fileReferenceURL
- filePathURL
2020-08-03 13:08:15 +02:00
Gregory John Casamento
24ac97e59d Add NSNotificationName typedef 2020-08-02 11:19:05 -04:00
Frederik Seiffert
b9a9481c56 Update NSURLRequest header to use "instancetype". 2020-07-14 09:21:53 +02:00
Frederik Seiffert
94d14ca02a Don't log current thread if its identical to private thread ID. 2020-07-08 17:02:41 +02:00
Frederik Seiffert
3752016412 Improve NSLog output on Android. 2020-07-08 16:15:57 +02:00
Frederik Seiffert
a7e87824c0 Fix possible deadlock when becoming multi-threaded. 2020-07-06 22:01:01 +02:00
Gregory John Casamento
fff7573b88 Correct changelog 2020-06-14 20:21:12 -04:00
Frederik Seiffert
d6d2fa9a74 Fix recursive creation of value transformers. 2020-06-11 14:22:04 +02:00
Gregory John Casamento
15fac5d36d Add changelog. 2020-06-09 07:50:45 -04:00
Richard Frith-Macdonald
3fc184e5d7 fix indentation 2020-06-06 12:15:08 +01:00
rfm
daadfe7a6d
Merge branch 'master' into android-assets-directory-improvements 2020-06-06 12:13:43 +01:00
Frederik Seiffert
71f6cde4bd Fix replacing an existing value in a weak objects map table. 2020-06-05 11:55:33 +02:00
Frederik Seiffert
a0fe037077 Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64. 2020-05-29 10:40:03 +02:00
Frederik Seiffert
d2938c7729 Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:. 2020-05-25 17:34:34 +02:00
Frederik Seiffert
db19fc3308 Android assets improvements to support directories
- Extend NSBundle resources support to handle directories in Android assets.
- Fix NSFileManager -isReadableFileAtPath: to also support directories in Android assets.
2020-05-20 13:39:47 +02:00
Frederik Seiffert
a8aba20a86 Fix BASE_NATIVE_OBJC_EXCEPTIONS check with OBJC_ZEROCOST_EXCEPTIONS. 2020-05-14 16:59:38 +02:00
Frederik Seiffert
9f0d8d7720 Fix building Win32 classes with nonfragile ABI. 2020-05-13 18:08:35 +02:00
rfm
57e4eba479
Merge branch 'master' into file_creation_date 2020-05-12 13:25:49 +01:00
rfm
6b008fc19e
Merge branch 'master' into android-nsinputstream-support 2020-05-11 15:02:05 +01:00
fredkiefer
e71c2f68fa * Source/NSISO8601DateFormatter.m,
* Source/NSOrthography.m: Clean up some compiler warnings.
2020-05-10 23:07:27 +02:00
fredkiefer
6c7defba24 * Tests/base/NSLocale/general.m: Mark more tests that depend on
locale setting as hopes.
* Tests/base/NSXMLParser/parse.m: Mark stream test as hopeful as
this isn't implemented at the moment.
* Tests/base/NSURL/basic.m: Use PASS_EQUAL in the downlaod test
to get the actual http status reported.
2020-05-09 15:46:32 +02:00
fredkiefer
f4c5c519c2 * Source/NSXMLParser.m: Fix small bug in last commit that broke
all gui applications when there was a commented out section in the
user default XML file.
2020-05-08 21:59:28 +02:00
Frederik Seiffert
b549dbbaec NSLocale improvements
Use "instancetype" for instance-returning methods. Fix method signature of -displayNameForKey:value:.
2020-05-07 15:30:36 +02:00
Frederik Seiffert
2908d4cfdf Fixed ChangeLog date. 2020-05-07 15:28:07 +02:00
Frederik Seiffert
5dfda50d82 Implement -[NSXMLParser initWithStream:]. 2020-05-05 19:41:22 +02:00
Frederik Seiffert
547983738a Add NSInputStream support for reading Android assets from main bundle. 2020-05-05 15:42:10 +02:00
Riccardo Mottola
bfcc2db53c In changeFileAttributes implement setting of creation date also for Unix, which needs to be done before setting the modification date. Also, implement reading the creation (birth time) date if a supported method was detected. 2020-05-04 10:17:25 +02:00
Riccardo Mottola
21c79c3500 Use utimensat() to set file modification date, if available. 2020-05-01 02:03:25 +02:00
fredkiefer
a48694941c Add newer features for NSDateComponents and
started to clean up NSCalendar implementation.
2020-04-26 21:13:22 +02:00
Richard Frith-Macdonald
a9767cdff7 Override -hash and -isEqual: so that notifications with the name name, object, and userInfo are considered equal. This is the OSX behavior. 2020-04-21 09:16:53 +01:00
Ivan Vučica
93bee1890e
documentation: Standardize announcement file text.
Normalize the accompanying text for the release announcement across
core packages: standardize chapter name and GPG information.
2020-04-14 23:54:36 +01:00
Richard Frith-Macdonald
fc0c0da188 Remove last vestiges of MIXED ABI support (it didn't really work), and change code to assume that use of the apple runtime means we have the nonfragile ABI (true for modern apple systems we may be interested in using). Regenerate configure script. 2020-04-14 14:56:17 +01:00
Richard Frith-Macdonald
ccb8594bc0 Fix [NSURLProtocol -initWithRequest:cachedResponse:client:] to retain the client (up until the last message is sent to it) as OSX does. 2020-04-13 08:53:02 +01:00
Richard Frith-Macdonald
df1b6dd6d5 Characterset memory usage and code organisation consistency improvements. 2020-04-12 12:28:07 +01:00
Richard Frith-Macdonald
e95192db5c add ASSIGNMUTABLECOPY 2020-04-10 11:30:04 +01:00
Frederik Seiffert
cc56c9cc97 Fixed NSOperation completion block memory mgmt. 2020-04-09 09:24:43 +02:00
Ivan Vučica
958dec0db2
release-chore: Release 1.27.0.
Version has been previously bumped; this commit updates release
documentation.
2020-04-05 19:00:40 +01:00
Ivan Vučica
3e806f96a2
release-chore: Fix some of the ChangeLog formatting. 2020-04-05 18:59:31 +01:00
rfm
da6be9daac
Merge branch 'master' into fix-pthread-setname 2020-03-29 11:33:39 +01:00
rfm
73baca1056
Merge branch 'master' into fix-nsurlresponse 2020-03-29 11:30:18 +01:00
rfm
81d70b37c8
Merge branch 'master' into numerical_locale 2020-03-29 11:26:40 +01:00
Fred Kiefer
77468b0b9e
Merge branch 'master' into fix-nsurlresponse 2020-03-26 18:46:33 +01:00
Frederik Seiffert
5f9982812e Added NSErrorDomain typedef. 2020-03-26 14:16:44 +01:00
Frederik Seiffert
a3b8ea0937 Use pthread_setname_np result instead of errno.
Fixes setting thread name on platforms where errno is not set.
2020-03-17 14:49:02 +01:00
fredkiefer
95abcbd694 * Source/NSURL.m: Fix compiler warnigns.
* Headers/Foundation/NSLocale.h,
* Source/NSLocale.m: Add a few convenience methods from MacOS 10.12.
2020-03-12 14:58:46 +01:00
Frederik Seiffert
5150ab1d5a Fixed parsing of NSURLResponse content type header. 2020-03-12 11:44:13 +01:00
Frederik Seiffert
1e51ef1b1e Fixed NSURLComponents setURL: throwing exceptions.
This happened when setting an URL that didn't have all the different parts like fragment or query, as rangeOfString: throws for nil values.
2020-03-10 18:06:44 +01:00